Skip to content

Commit 9c938ab

Browse files
authored
Fix the wrong flag definition (#33)
Signed-off-by: Jan Steffen <[email protected]>
1 parent 28e6501 commit 9c938ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/monoctl/create/api_token.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func NewCreateAPITokenCmd() *cobra.Command {
5858
flags.StringSliceVarP(&scopes, "scopes", "s", scopes, scopesUsage)
5959
util.PanicOnError(cmd.MarkFlagRequired("scopes"))
6060

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

6363
return cmd
6464
}

0 commit comments

Comments
 (0)