Skip to content

Commit

Permalink
Fix the wrong flag definition (#33)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Steffen <[email protected]>
  • Loading branch information
jastBytes authored Feb 7, 2022
1 parent 28e6501 commit 9c938ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/monoctl/create/api_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func NewCreateAPITokenCmd() *cobra.Command {
flags.StringSliceVarP(&scopes, "scopes", "s", scopes, scopesUsage)
util.PanicOnError(cmd.MarkFlagRequired("scopes"))

flags.DurationP("validity", "v", validity, "Specify the validity period of the token.")
flags.DurationVarP(&validity, "validity", "v", validity, "Specify the validity period of the token.")

return cmd
}

0 comments on commit 9c938ab

Please sign in to comment.