Skip to content

Commit a2f203d

Browse files
runners: restore obsolete synonyms for -i/--dev-id
This is a partial revert of commit 2cee5ff ("scripts: west_commands: runners: remove deprecated options"). I remarked at the time that the removal of the older way of writing things from the runners themselves seemed gratuitous since they are easy to continue to support indefinitely and people may have been used to the old way of doing things. It didn't seem worth the fight to push for a revert at the time, though. Since then I've run into real problems that their removal has caused in the wild and I am convinced that this part of that patch was wrong. Restore the original, undeprecated forms of these options, but make it clear in the command line help that they're just obsolete alternative spellings at this point. Signed-off-by: Marti Bolivar <[email protected]>
1 parent 278b07c commit a2f203d

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

scripts/west_commands/runners/jlink.py

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ def do_add_parser(cls, parser):
9494
# Optional:
9595
parser.add_argument('--loader', required=False, dest='loader',
9696
help='specifies a loader type')
97+
parser.add_argument('--id', required=False, dest='dev_id',
98+
help='obsolete synonym for -i/--dev-id')
9799
parser.add_argument('--iface', default='swd',
98100
help='interface to use, default is swd')
99101
parser.add_argument('--speed', default='auto',

scripts/west_commands/runners/nrfjprog.py

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def do_add_parser(cls, parser):
6969
parser.add_argument('--softreset', required=False,
7070
action='store_true',
7171
help='use reset instead of pinreset')
72+
parser.add_argument('--snr', required=False, dest='dev_id',
73+
help='obsolete synonym for -i/--dev-id')
7274
parser.add_argument('--force', required=False,
7375
action='store_true',
7476
help='Flash even if the result cannot be guaranteed.')

scripts/west_commands/runners/pyocd.py

+2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def do_add_parser(cls, parser):
107107
DEFAULT_PYOCD_TELNET_PORT))
108108
parser.add_argument('--tui', default=False, action='store_true',
109109
help='if given, GDB uses -tui')
110+
parser.add_argument('--board-id', dest='dev_id',
111+
help='obsolete synonym for -i/--dev-id')
110112

111113
@classmethod
112114
def tool_opt_help(cls) -> str:

0 commit comments

Comments
 (0)