Skip to content

Commit 3b2d312

Browse files
jeremybettiscarlescufi
authored andcommitted
west: Fix --openocd-search argument
Running west flash with the --openocd-search arg will result in the openocd command being run with a -s param added for every character in the passed DIR. Fix the argparser to append all openocd-search DIRs into a list, instead of just passing a string to the subcommand. Signed-off-by: Jeremy Bettis <[email protected]>
1 parent 44eb401 commit 3b2d312

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
@@ -140,7 +140,7 @@ def add_parser_common(command, parser_adder=None, parser=None):
140140
group.add_argument('--gdb', help='path to GDB')
141141
group.add_argument('--openocd', help='path to openocd')
142142
group.add_argument(
143-
'--openocd-search', metavar='DIR',
143+
'--openocd-search', metavar='DIR', action='append',
144144
help='path to add to openocd search path, if applicable')
145145

146146
return parser

0 commit comments

Comments
 (0)