[#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>
remotes/fyrchik/fix-innerring
Pavel Karpy 2022-08-04 11:41:56 +03:00 committed by Pavel Karpy
parent c2918fce3a
commit 713cfa5610
2 changed files with 1 additions and 1 deletions

View File

@ -10,6 +10,7 @@ Changelog for NeoFS Node
### Fixed
- Losing request context in eACL response checks (#1595)
- Do not require `lifetime` flag in `session create` CLI command (#1655)
### Removed

View File

@ -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)