Skip to content

Commit

Permalink
Fix order/help for "token" action args
Browse files Browse the repository at this point in the history
  • Loading branch information
dinvlad committed Aug 22, 2020
1 parent 95b27e9 commit f009c9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions google_yubikey/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ def parse_args():
'-a', '--service-account-email', required=True,
help='Service Account email',
)
parser_token.add_argument(
'-t', '--token-type', type=TokenType.from_str(TokenType), choices=list(TokenType),
help='Token type', default=TokenType.ACCESS,
)
parser_token.add_argument(
'-d', '--audience',
help='Audience for ID token',
Expand All @@ -148,10 +152,6 @@ def parse_args():
'-l', '--token-lifetime', type=int, default=DEFAULT_LIFETIME,
help='Token lifetime, in seconds',
)
parser_token.add_argument(
'-t', '--token-type', type=TokenType.from_str(TokenType), choices=list(TokenType),
help='Token type, in seconds', default=TokenType.ACCESS,
)
parser_token.add_argument(
'-m', '--prompt-management-key', action='store_true',
help='Prompt for management key',
Expand Down

0 comments on commit f009c9a

Please sign in to comment.