diff options
author | Ruben Pollan <meskio@sindominio.net> | 2017-04-27 12:34:58 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2017-04-27 12:34:58 +0200 |
commit | ca71c03d12adfa26bf19a18c60245bdf6494afdc (patch) | |
tree | b6716800fdeb91ed76be60f4b458a8f7b37ce18c /src/leap/bitmask | |
parent | ace78ba83bbf202a455e9cfd9b82e316393563f8 (diff) |
[bug] use argv for the argparse prog name in the cli User
- Resolves: #8829
Diffstat (limited to 'src/leap/bitmask')
-rw-r--r-- | src/leap/bitmask/cli/user.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/leap/bitmask/cli/user.py b/src/leap/bitmask/cli/user.py index 1ab36302..fc1d2960 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) |