scripts: west: remove command from runner arguments
This is redundant information. The command is already known from the top-level west command line. We can just feed it to run without inserting it on the command line as well, which is safe to do now that zephyr_flash_debug.py is gone. Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
This commit is contained in:
parent
fbd2e92b42
commit
367c0bab6d
2 changed files with 3 additions and 22 deletions
|
@ -110,8 +110,7 @@ def do_run_common(command, args, runner_args, cached_runner_var):
|
|||
# Construct the final command line arguments, create a
|
||||
# runner-specific parser to handle them, and run the command.
|
||||
assert isinstance(runner_args, list), runner_args
|
||||
final_runner_args = (cached_common_args + cached_runner_args +
|
||||
runner_args + [command_name])
|
||||
final_runner_args = cached_common_args + cached_runner_args + runner_args
|
||||
|
||||
# Having the runners themselves be the place where their argument
|
||||
# parsing is handled is hackish; it's an artifact of the time
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue