forked from TrueCloudLab/frostfs-node
[#1402] cli: Add cid
flag constant
Also, move common flag constants in `root` file of the `storagegroup` package. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
6f2363cf31
commit
bc5882fc89
6 changed files with 16 additions and 17 deletions
|
@ -36,8 +36,8 @@ func initSGPutCmd() {
|
|||
|
||||
flags := sgPutCmd.Flags()
|
||||
|
||||
flags.String("cid", "", "Container ID")
|
||||
_ = sgPutCmd.MarkFlagRequired("cid")
|
||||
flags.String(cidFlag, "", "Container ID")
|
||||
_ = sgPutCmd.MarkFlagRequired(cidFlag)
|
||||
|
||||
flags.StringSliceVarP(&sgMembers, sgMembersFlag, "m", nil, "ID list of storage group members")
|
||||
_ = sgPutCmd.MarkFlagRequired(sgMembersFlag)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue