From dc4665ee97cdd5b84e40cfac9f6519c9f393e3e6 Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Sun, 22 Mar 2020 23:27:09 -0700 Subject: [PATCH] make verbose=1 the default, add -q/--quiet to suppress it --- gp-saml-gui.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)") -- 2.39.5