Skip to content

Commit

Permalink
implement --version
Browse files Browse the repository at this point in the history
  • Loading branch information
gieses committed Mar 2, 2021
1 parent 14c61dd commit c75b841
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xirt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def arg_parser(): # pragma: not covered
parser.add_argument('--no-write', dest='write', action='store_false',
help="Flag for writing result prediction files. If false only summaries "
"are written (default: --write).")
parser.add_argument('--version', action='version',
version='%(prog)s {version}'.format(version=xv))
parser.set_defaults(write=True)
return parser

Expand Down

0 comments on commit c75b841

Please sign in to comment.