Skip to content

Commit 5dc92a3

Browse files
authored
UW-655 Get program name from sys.argv (#565)
1 parent 21668af commit 5dc92a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uwtools/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,7 +1022,7 @@ def _basic_setup(parser: Parser) -> Group:
10221022
_switch(STR.version),
10231023
action=STR.version,
10241024
help="Show version info and exit",
1025-
version=f"%(prog)s {_version()}",
1025+
version=f"{Path(sys.argv[0]).name} {_version()}",
10261026
)
10271027
return optional
10281028

0 commit comments

Comments
 (0)