Skip to content

Commit 053efc6

Browse files
committed
Add -S, -L, and --source to the mutually exclusive group
1 parent c969a4c commit 053efc6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/make.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
dest="macros",
8484
help="Add a macro definition")
8585

86-
parser.add_argument("-S", "--supported-toolchains",
86+
group.add_argument("-S", "--supported-toolchains",
8787
action="store_true",
8888
dest="supported_toolchains",
8989
default=False,
@@ -105,7 +105,7 @@
105105
default=None, help="Required peripherals")
106106
parser.add_argument("--dep", dest="dependencies",
107107
default=None, help="Dependencies")
108-
parser.add_argument("--source", dest="source_dir", type=argparse_filestring_type,
108+
group.add_argument("--source", dest="source_dir", type=argparse_filestring_type,
109109
default=None, help="The source (input) directory", action="append")
110110
parser.add_argument("--duration", type=int, dest="duration",
111111
default=None, help="Duration of the test")
@@ -119,7 +119,7 @@
119119
default=None, help="The mbed serial port")
120120
parser.add_argument("-b", "--baud", type=int, dest="baud",
121121
default=None, help="The mbed serial baud rate")
122-
parser.add_argument("-L", "--list-tests", action="store_true", dest="list_tests",
122+
group.add_argument("-L", "--list-tests", action="store_true", dest="list_tests",
123123
default=False, help="List available tests in order and exit")
124124

125125
# Ideally, all the tests with a single "main" thread can be run with, or

0 commit comments

Comments
 (0)