Skip to content

Commit

Permalink
Get program name from sys.argv
Browse files Browse the repository at this point in the history
  • Loading branch information
maddenp-noaa committed Aug 8, 2024
1 parent 21668af commit fb8b302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uwtools/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ def _basic_setup(parser: Parser) -> Group:
_switch(STR.version),
action=STR.version,
help="Show version info and exit",
version=f"%(prog)s {_version()}",
version=f"{Path(sys.argv[0]).name} {_version()}",
)
return optional

Expand Down

0 comments on commit fb8b302

Please sign in to comment.