Skip to content

Commit

Permalink
change --help and remove assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jun 4, 2024
1 parent 9af977b commit 3d3b7bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions clang_tools/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def get_parser() -> argparse.ArgumentParser:
"--install",
metavar="VERSION",
help="Install clang-tools about a specific version. This can be in the form of"
" a semantic version specification (``x.y.z``, ``x.y``, ``x``) or a path that "
"points to the directory where the binaries already exist.",
" a semantic version specification (``x.y.z``, ``x.y``, ``x``). NOTE: A "
"malformed version specification will cause a silent failure.",
)
parser.add_argument(
"-t",
Expand Down
3 changes: 0 additions & 3 deletions clang_tools/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,4 @@ def __init__(self, user_input: str):
try:
self.info = tuple([int(x) for x in version_tuple]) # type: ignore[assignment]
except ValueError:
assert Path(
user_input
).exists(), "specified version is not a semantic or a path"
self.info = (0, 0, 0)

0 comments on commit 3d3b7bf

Please sign in to comment.