diff --git a/scripts/west_commands/run_common.py b/scripts/west_commands/run_common.py index 385a26df7e2..c9f22e44c0a 100644 --- a/scripts/west_commands/run_common.py +++ b/scripts/west_commands/run_common.py @@ -122,7 +122,7 @@ def add_parser_common(parser_adder, command): # This is how we detect if the user provided them or not when # overriding values from the cached configuration. - command_verb = "flash" if command == "flash" else "debug" + command_verb = "flash" if command.name == "flash" else "debug" group.add_argument('--board-dir', help='Zephyr board directory')