Skip to content

Commit

Permalink
mbed: config: print detailed help in subcommand
Browse files Browse the repository at this point in the history
Print detailed usage when unsupported arguments are supplied
with mbed config subcommand
  • Loading branch information
Naveen Kaje committed Mar 4, 2019
1 parent 52ed388 commit a58b5b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mbed/mbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -3250,7 +3250,9 @@ def config_(var=None, value=None, global_cfg=False, unset=False, list_config=Fal
else:
value = program.get_cfg(var)
action(('%s' % value) if value else 'No default %s set in program "%s"' % (name, program.name))
subcommands['config'].print_help()
else:
subcommands['config'].print_help()
subcommands['config'].error("too few arguments")


Expand Down

0 comments on commit a58b5b9

Please sign in to comment.