summaryrefslogtreecommitdiff
path: root/src/leap/bitmask
diff options
context:
space:
mode:
authordrebs <drebs@riseup.net>2016-11-06 14:18:02 -0200
committerdrebs <drebs@riseup.net>2016-11-06 14:21:21 -0200
commit7169b2c38d517834e867be987cf62e7466b6f241 (patch)
tree50e2def2f60ea8a636ac3f757dc0328d009a3ca3 /src/leap/bitmask
parent596f1f82b1d6b28f4a92d3669fefdd8ec9a734fc (diff)
[feat] add '-v' option
Diffstat (limited to 'src/leap/bitmask')
-rwxr-xr-xsrc/leap/bitmask/cli/bitmask_cli.py2
-rw-r--r--src/leap/bitmask/core/launcher.py2
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"),