Skip to content

Commit faee45e

Browse files
committed
Add mbed help command, an equivalent to mbed --help (#191)
1 parent 6990026 commit faee45e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mbed/mbed.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,12 +2143,17 @@ def target_(name=None, global_cfg=False):
21432143

21442144
@subcommand('toolchain',
21452145
dict(name='name', nargs='?', help='Default toolchain name. Example: ARM, uARM, GCC_ARM, IAR'),
2146-
help='Set or get default toolchain',
2146+
help='Set or get default toolchain\n\n',
21472147
description=(
21482148
"This is an alias to 'mbed config toolchain [--global] [name]'\n"))
21492149
def toolchain_(name=None, global_cfg=False):
21502150
return config_('toolchain', name, global_cfg=global_cfg)
21512151

2152+
@subcommand('help',
2153+
help='This help screen')
2154+
def help_():
2155+
parser.print_help()
2156+
return
21522157

21532158
# Parse/run command
21542159
if len(sys.argv) <= 1:

0 commit comments

Comments
 (0)