summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/cli
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/bitmask/cli')
-rwxr-xr-xsrc/leap/bitmask/cli/bitmask_cli.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/leap/bitmask/cli/bitmask_cli.py b/src/leap/bitmask/cli/bitmask_cli.py
index e72d1f60..34c23569 100755
--- a/src/leap/bitmask/cli/bitmask_cli.py
+++ b/src/leap/bitmask/cli/bitmask_cli.py
@@ -121,19 +121,15 @@ GENERAL COMMANDS:
value + Fore.RESET)
-def _check_started(cli):
+@defer.inlineCallbacks
+def execute():
+ cli = BitmaskCLI()
cli.data = ['version']
args = ['--verbose'] if '--verbose' in sys.argv else None
yield cli._send(
timeout=0.1, printer=_null_printer,
errb=lambda: cli.start(args))
cli.data = []
-
-
-@defer.inlineCallbacks
-def execute():
- cli = BitmaskCLI()
- _check_started(cli)
yield cli.execute(sys.argv[1:])
try:
yield reactor.stop()