From f009c9ac3e738f56103f0a195715c9bc1f812c6b Mon Sep 17 00:00:00 2001 From: Denis Loginov Date: Sat, 22 Aug 2020 04:19:49 -0400 Subject: [PATCH] Fix order/help for "token" action args --- google_yubikey/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/google_yubikey/__main__.py b/google_yubikey/__main__.py index 7fc3252..3dfa175 100755 --- a/google_yubikey/__main__.py +++ b/google_yubikey/__main__.py @@ -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', @@ -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',