Skip to content

Commit cea6e3f

Browse files
mbolivar-nordicnashif
authored andcommitted
scripts: west_commands: fix help text for flash
The 'command' variable points at a python command object, not a string. Take its name so the help text for west flash -h correctly says 'flash' instead of 'debug'. Signed-off-by: Martí Bolívar <[email protected]>
1 parent b5bb4cd commit cea6e3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/west_commands/run_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def add_parser_common(parser_adder, command):
122122
# This is how we detect if the user provided them or not when
123123
# overriding values from the cached configuration.
124124

125-
command_verb = "flash" if command == "flash" else "debug"
125+
command_verb = "flash" if command.name == "flash" else "debug"
126126

127127
group.add_argument('--board-dir',
128128
help='Zephyr board directory')

0 commit comments

Comments
 (0)