Skip to content

Commit 7c8e35e

Browse files
committed
add types and descriptions for script args
1 parent 0e0c1ba commit 7c8e35e

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

scripts/build_locally.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,16 @@ def parse_args():
3636
p = argparse.ArgumentParser(description="Local dpctl build driver")
3737

3838
p.add_argument(
39-
"--c-compiler", default=None, help="Path or name of C compiler"
39+
"--c-compiler",
40+
type=str,
41+
default=None,
42+
help="Path or name of C compiler",
4043
)
4144
p.add_argument(
42-
"--cxx-compiler", default=None, help="Path or name of C++ compiler"
45+
"--cxx-compiler",
46+
type=str,
47+
default=None,
48+
help="Path or name of C++ compiler",
4349
)
4450
p.add_argument(
4551
"--compiler-root",

scripts/gen_coverage.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,20 @@ def parse_args():
118118

119119
p.add_argument(
120120
"--gtest-config",
121+
type=str,
121122
help="Path to GTestConfig.cmake file for a custom GTest installation",
122123
)
123124
p.add_argument(
124125
"--bin-llvm",
126+
type=str,
125127
help="Path to folder where llvm-cov/llvm-profdata can be found",
126128
)
127-
p.add_argument("--skip-pytest", dest="run_pytest", action="store_false")
129+
p.add_argument(
130+
"--skip-pytest",
131+
dest="run_pytest",
132+
action="store_false",
133+
help="Skip running pytest and coverage generation",
134+
)
128135
p.add_argument(
129136
"--clean",
130137
action="store_true",

scripts/gen_docs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def parse_args():
9797

9898
p.add_argument(
9999
"--doxyrest-root",
100+
type=str,
100101
help=(
101102
"Path to Doxyrest installation to use to generate Sphinx docs"
102103
+ "for libsyclinterface"

0 commit comments

Comments
 (0)