forked from TrueCloudLab/frostfs-node
[#1655] cli: Do not force specifying session lifetime
We have the default value which is also printed in the help messages but any call that does not specify that flag leads to an error. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
c2918fce3a
commit
713cfa5610
2 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,6 @@ func init() {
|
|||
createCmd.Flags().Bool(jsonFlag, false, "output token in JSON")
|
||||
createCmd.Flags().StringP(commonflags.RPC, commonflags.RPCShorthand, commonflags.RPCDefault, commonflags.RPCUsage)
|
||||
|
||||
_ = cobra.MarkFlagRequired(createCmd.Flags(), commonflags.Lifetime)
|
||||
_ = cobra.MarkFlagRequired(createCmd.Flags(), commonflags.WalletPath)
|
||||
_ = cobra.MarkFlagRequired(createCmd.Flags(), outFlag)
|
||||
_ = cobra.MarkFlagRequired(createCmd.Flags(), commonflags.RPC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue