From 7169b2c38d517834e867be987cf62e7466b6f241 Mon Sep 17 00:00:00 2001 From: drebs Date: Sun, 6 Nov 2016 14:18:02 -0200 Subject: [feat] add '-v' option --- src/leap/bitmask/cli/bitmask_cli.py | 2 +- src/leap/bitmask/core/launcher.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/leap/bitmask/cli/bitmask_cli.py b/src/leap/bitmask/cli/bitmask_cli.py index 60bf7d9d..e72d1f60 100755 --- a/src/leap/bitmask/cli/bitmask_cli.py +++ b/src/leap/bitmask/cli/bitmask_cli.py @@ -93,7 +93,7 @@ GENERAL COMMANDS: # avoid launching again. import commands cmd = 'bitmaskd' - if raw_args and '--verbose' in raw_args: + if raw_args and ('--verbose' in raw_args or '-v' in raw_args): cmd += ' --verbose' commands.getoutput(cmd) command.default_dict_printer({'start': 'ok'}) diff --git a/src/leap/bitmask/core/launcher.py b/src/leap/bitmask/core/launcher.py index d77f367a..5b76b687 100644 --- a/src/leap/bitmask/core/launcher.py +++ b/src/leap/bitmask/core/launcher.py @@ -50,7 +50,7 @@ def run_bitmaskd(): for (index, arg) in enumerate(sys.argv): if arg == '--backend': flags.BACKEND = sys.argv[index + 1] - elif arg == '--verbose': + elif arg == '--verbose' or arg == '-v': flags.VERBOSE = True args = [ '-y', join(here(core), "bitmaskd.tac"), -- cgit v1.2.3