Skip to content

Commit 9eea4eb

Browse files
committed
change --help and remove assertion
1 parent ea2a684 commit 9eea4eb

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

clang_tools/main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def get_parser() -> argparse.ArgumentParser:
2121
"--install",
2222
metavar="VERSION",
2323
help="Install clang-tools about a specific version. This can be in the form of"
24-
" a semantic version specification (``x.y.z``, ``x.y``, ``x``) or a path that "
25-
"points to the directory where the binaries already exist.",
24+
" a semantic version specification (``x.y.z``, ``x.y``, ``x``). NOTE: A "
25+
"malformed version specification will cause a silent failure.",
2626
)
2727
parser.add_argument(
2828
"-t",

clang_tools/util.py

-3
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,4 @@ def __init__(self, user_input: str):
122122
try:
123123
self.info = tuple([int(x) for x in version_tuple]) # type: ignore[assignment]
124124
except ValueError:
125-
assert Path(
126-
user_input
127-
).exists(), "specified version is not a semantic or a path"
128125
self.info = (0, 0, 0)

0 commit comments

Comments
 (0)