diff --git a/CHANGELOG.md b/CHANGELOG.md index 50d6c90e..792f7436 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Changelog for FrostFS Node - Fetching blobovnicza objects that not found in write-cache (#2206) - Do not search for the small objects in FSTree (#2206) - Correct status error for expired session token (#2207) +- Set flag `mode` required for `frostfs-cli control shards set-mode` (#8) ### Removed ### Updated diff --git a/cmd/frostfs-cli/modules/control/shards_set_mode.go b/cmd/frostfs-cli/modules/control/shards_set_mode.go index 2e3aecdd..8cf81763 100644 --- a/cmd/frostfs-cli/modules/control/shards_set_mode.go +++ b/cmd/frostfs-cli/modules/control/shards_set_mode.go @@ -93,6 +93,7 @@ func initControlSetShardModeCmd() { flags.String(shardModeFlag, "", fmt.Sprintf("New shard mode (%s)", strings.Join(modes, ", ")), ) + _ = setShardModeCmd.MarkFlagRequired(shardModeFlag) flags.Bool(shardClearErrorsFlag, false, "Set shard error count to 0") setShardModeCmd.MarkFlagsMutuallyExclusive(shardIDFlag, shardAllFlag)