]> code.communitydata.science - nu-vpn-proxy.git/commitdiff
make verbose=1 the default, add -q/--quiet to suppress it
authorDaniel Lenski <dlenski@gmail.com>
Mon, 23 Mar 2020 06:27:09 +0000 (23:27 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 23 Mar 2020 19:58:17 +0000 (12:58 -0700)
gp-saml-gui.py

index 09f0faa154b4ea559c7c24f7dcb95bc7503568d4..23e910c9e1cb190ef15604980e0d2c839e5632eb 100755 (executable)
@@ -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)")

Community Data Science Collective || Want to submit a patch?