Skip to content

Commit a58b5b9

Browse files
author
Naveen Kaje
committed
mbed: config: print detailed help in subcommand
Print detailed usage when unsupported arguments are supplied with mbed config subcommand
1 parent 52ed388 commit a58b5b9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mbed/mbed.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3250,7 +3250,9 @@ def config_(var=None, value=None, global_cfg=False, unset=False, list_config=Fal
32503250
else:
32513251
value = program.get_cfg(var)
32523252
action(('%s' % value) if value else 'No default %s set in program "%s"' % (name, program.name))
3253+
subcommands['config'].print_help()
32533254
else:
3255+
subcommands['config'].print_help()
32543256
subcommands['config'].error("too few arguments")
32553257

32563258

0 commit comments

Comments
 (0)