Skip to content

Commit d70b181

Browse files
committed
fix: add version_str to show version
1 parent 0f3c940 commit d70b181

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang_tools/wheel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def main() -> int:
2323
parser = get_parser()
2424
args = parser.parse_args()
2525
path = _resolve_install(args.tool, args.version)
26+
version_str = f" version {args.version}" if args.version else " latest version"
2627
if path:
27-
print(f"{args.tool} installed at: {path}")
28+
print(f"{args.tool}{version_str} installed at: {path}")
2829
return 0
2930
else:
30-
version_str = f" version {args.version}" if args.version else ""
3131
print(f"Failed to install {args.tool}{version_str}")
3232
return 1
3333

0 commit comments

Comments
 (0)