forked from TrueCloudLab/frostfs-node
[#1867] services/control: Interpret empty list of IDs as all shards
In neofs-cli the flag is still required, but `all` can be used to process all shards. Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
b632260995
commit
c0199dee93
7 changed files with 30 additions and 11 deletions
|
@ -45,6 +45,7 @@ func initControlFlushCacheCmd() {
|
|||
ff := flushCacheCmd.Flags()
|
||||
ff.String(controlRPC, controlRPCDefault, controlRPCUsage)
|
||||
ff.StringSlice(shardIDFlag, nil, "List of shard IDs in base58 encoding")
|
||||
ff.Bool(shardAllFlag, false, "Process all shards")
|
||||
|
||||
_ = flushCacheCmd.MarkFlagRequired(shardIDFlag)
|
||||
flushCacheCmd.MarkFlagsMutuallyExclusive(shardIDFlag, shardAllFlag)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue