From 3f018232be6fec0e1a0881353c6126e7db8eb3b4 Mon Sep 17 00:00:00 2001 From: Ekaterina Pavlova Date: Thu, 10 Aug 2023 18:47:53 +0400 Subject: [PATCH] cli: deprecate no-precheck flag Closes #2436. Signed-off-by: Ekaterina Pavlova --- cmd/neofs-cli/modules/container/set_eacl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/neofs-cli/modules/container/set_eacl.go b/cmd/neofs-cli/modules/container/set_eacl.go index 3d77de56079..378b4f522e8 100644 --- a/cmd/neofs-cli/modules/container/set_eacl.go +++ b/cmd/neofs-cli/modules/container/set_eacl.go @@ -147,4 +147,5 @@ func initContainerSetEACLCmd() { "Increases default execution timeout to %.0fs", awaitTimeout.Seconds())) // simple %s notation prints 1m0s https://github.com/golang/go/issues/39064 flags.BoolP(commonflags.ForceFlag, commonflags.ForceFlagShorthand, false, "skip validation checks (ownership, extensibility of the container ACL)") flags.BoolVar(&flagVarsSetEACL.noPreCheck, "no-precheck", false, "do not pre-check the extensibility of the container ACL") + _ = flags.MarkDeprecated("no-precheck", "use --force flag instead for skipping validation checks") }