Skip to content

Commit 97dbda2

Browse files
mbolivar-nordicjhedberg
authored andcommitted
scripts: run_common: rename unknown_args to user_runner_args
This makes its true value clearer, and will make a later bug fix patch easier to understand. Signed-off-by: Martí Bolívar <[email protected]>
1 parent ca66f5b commit 97dbda2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/west_commands/run_common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ def desc_common(command_name):
125125
west {command_name} --context -d BUILD_DIR
126126
''')
127127

128-
def do_run_common(command, args, unknown_args):
128+
def do_run_common(command, args, user_runner_args):
129129
# This is the main routine for all the "west flash", "west debug",
130130
# etc. commands.
131131

132132
if args.context:
133-
dump_context(command, args, unknown_args)
133+
dump_context(command, args, user_runner_args)
134134
return
135135

136136
command_name = command.name
@@ -156,7 +156,7 @@ def do_run_common(command, args, unknown_args):
156156

157157
# If the user passed -- to force the parent argument parser to stop
158158
# parsing, it will show up here, and needs to be filtered out.
159-
runner_args = [arg for arg in unknown_args if arg != '--']
159+
runner_args = [arg for arg in user_runner_args if arg != '--']
160160

161161
# Arguments are provided in this order to allow the specific to
162162
# override the general:

0 commit comments

Comments
 (0)