Skip to content

Commit

Permalink
jipstatus: add version flag to see the version
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Roxell <[email protected]>
  • Loading branch information
roxell authored and JLLinaro committed Jun 28, 2023
1 parent c303a4e commit a976c0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jipdate/jipstatus.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# Local files
from jipdate import cfg
from jipdate import jiralogin
from jipdate import __version__

import pprint

Expand Down Expand Up @@ -212,6 +213,10 @@ def get_parser():
help="Store output to HTML file",
)

parser.add_argument(
"--version", action="version", version=f"%(prog)s, {__version__}"
)

parser.add_argument(
"-v",
"--verbose",
Expand Down

0 comments on commit a976c0e

Please sign in to comment.