Commit 21ae0aaf authored by Bram Schoenmakers's avatar Bram Schoenmakers

Always strip subcommand from the arguments before executing it.

parent 5acc784d
......@@ -194,8 +194,7 @@ class CLIApplication(object):
if subcommand in subcommand_map:
subcommand = subcommand_map[subcommand]
if len(args) > 1:
args = args[1:]
args = args[1:]
else:
subcommand = self.config.default_command()
if subcommand in subcommand_map:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment