Skip to content

Commit 439d2e8

Browse files
committed
Add -S, -L, and --source to the project.py mutually exclusive group
1 parent 053efc6 commit 439d2e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@
6464
default=False,
6565
help="use the mbed library build, instead of the sources")
6666

67-
parser.add_argument("-L", "--list-tests",
67+
group.add_argument("-L", "--list-tests",
6868
action="store_true",
6969
dest="list_tests",
7070
default=False,
7171
help="list available programs in order and exit")
7272

73-
parser.add_argument("-S", "--list-matrix",
73+
group.add_argument("-S", "--list-matrix",
7474
action="store_true",
7575
dest="supported_ides",
7676
default=False,
@@ -82,7 +82,7 @@
8282
default=False,
8383
help="writes tools/export/README.md")
8484

85-
parser.add_argument("--source",
85+
group.add_argument("--source",
8686
nargs="*",
8787
type=argparse_filestring_type,
8888
dest="source_dir",

0 commit comments

Comments
 (0)