summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-04-27 12:34:58 +0200
committerRuben Pollan <meskio@sindominio.net>2017-04-27 12:34:58 +0200
commitca71c03d12adfa26bf19a18c60245bdf6494afdc (patch)
treeb6716800fdeb91ed76be60f4b458a8f7b37ce18c /src/leap
parentace78ba83bbf202a455e9cfd9b82e316393563f8 (diff)
[bug] use argv for the argparse prog name in the cli User
- Resolves: #8829
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/bitmask/cli/user.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/leap/bitmask/cli/user.py b/src/leap/bitmask/cli/user.py
index 1ab3630..fc1d296 100644
--- a/src/leap/bitmask/cli/user.py
+++ b/src/leap/bitmask/cli/user.py
@@ -50,7 +50,6 @@ SUBCOMMANDS:
self.data.append('user')
def create(self, raw_args):
- args = tuple([command.appname] + sys.argv[1:4])
passwd = None
for (index, item) in enumerate(raw_args):
@@ -60,7 +59,7 @@ SUBCOMMANDS:
parser = argparse.ArgumentParser(
description='Bitmask user',
- prog='%s %s %s %s' % args)
+ prog='%s %s %s' % tuple(sys.argv[:3]))
parser.add_argument('--invitecode', **_invitecode_kw)
parser.add_argument('username', **_username_kw)
@@ -124,10 +123,9 @@ SUBCOMMANDS:
return defer.succeed(None)
def _username(self, raw_args, needed=False):
- args = tuple([command.appname] + sys.argv[1:3])
parser = argparse.ArgumentParser(
description='Bitmask user',
- prog='%s %s %s' % args)
+ prog='%s %s %s' % tuple(sys.argv[:3]))
parser.add_argument('username', **_username_kw)
subargs = parser.parse_args(raw_args)