From: Daniel Lenski Date: Mon, 23 Mar 2020 06:27:09 +0000 (-0700) Subject: make verbose=1 the default, add -q/--quiet to suppress it X-Git-Url: https://code.communitydata.science/nu-vpn-proxy.git/commitdiff_plain/dc4665ee97cdd5b84e40cfac9f6519c9f393e3e6?hp=66438abc7cf5d17c1093610266fcc9b8319cd9d6 make verbose=1 the default, add -q/--quiet to suppress it --- diff --git a/gp-saml-gui.py b/gp-saml-gui.py index 09f0faa..23e910c 100755 --- a/gp-saml-gui.py +++ b/gp-saml-gui.py @@ -143,7 +143,9 @@ def parse_args(args = None): g.add_argument('-c','--cert', help='PEM file containing client certificate (and optionally private key)') g.add_argument('--key', help='PEM file containing client private key (if not included in same file as certificate)') g = p.add_argument_group('Debugging and advanced options') - g.add_argument('-v','--verbose', default=0, action='count') + x = p.add_mutually_exclusive_group() + x.add_argument('-v','--verbose', default=1, action='count', help='Increase verbosity of explanatory output to stderr') + x.add_argument('-q','--quiet', dest='verbose', action='store_const', const=0, help='Reduce verbosity to a minimum') g.add_argument('-x','--external', action='store_true', help='Launch external browser (for debugging)') g.add_argument('-u','--uri', action='store_true', help='Treat server as the complete URI of the SAML entry point, rather than GlobalProtect server') g.add_argument('--clientos', choices=set(pf2clientos.values()), default=default_clientos, help="clientos value to send (default is %(default)s)")