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
|
@ -10,6 +10,7 @@ Changelog for NeoFS Node
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Losing request context in eACL response checks (#1595)
|
- Losing request context in eACL response checks (#1595)
|
||||||
|
- Do not require `lifetime` flag in `session create` CLI command (#1655)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,6 @@ func init() {
|
||||||
createCmd.Flags().Bool(jsonFlag, false, "output token in JSON")
|
createCmd.Flags().Bool(jsonFlag, false, "output token in JSON")
|
||||||
createCmd.Flags().StringP(commonflags.RPC, commonflags.RPCShorthand, commonflags.RPCDefault, commonflags.RPCUsage)
|
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(), commonflags.WalletPath)
|
||||||
_ = cobra.MarkFlagRequired(createCmd.Flags(), outFlag)
|
_ = cobra.MarkFlagRequired(createCmd.Flags(), outFlag)
|
||||||
_ = cobra.MarkFlagRequired(createCmd.Flags(), commonflags.RPC)
|
_ = cobra.MarkFlagRequired(createCmd.Flags(), commonflags.RPC)
|
||||||
|
|
Loading…
Reference in a new issue