Commit be138833 authored by ∞'s avatar 💻

Bugfix in Cli2ArgsException

parent ca65b3df
...@@ -9,8 +9,11 @@ class Cli2ArgsException(Cli2Exception): ...@@ -9,8 +9,11 @@ class Cli2ArgsException(Cli2Exception):
def __init__(self, command, passed_args): def __init__(self, command, passed_args):
msg = ['Got arguments:'] if len(passed_args) else [] msg = ['Got arguments:'] if len(passed_args) else []
for arg, i in enumerate(passed_args, start=0): for i, arg in enumerate(passed_args, start=0):
msg.append('='.join(command.required_args[i], arg)) msg.append('='.join([command.required_args[i], arg]))
if msg:
msg.append( msg.append(
'Missing arguments: ' + ', '.join([*map( 'Missing arguments: ' + ', '.join([*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