Skip to content

Commit

Permalink
fix bug in jobstats argparser with version option
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzebsiddiqui committed Apr 19, 2021
1 parent 3abf8a8 commit 5293ca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jobstats
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ from datetime import datetime
import sys
import platform

JOBSTATS_VERSION = 0.2
JOBSTATS_VERSION = "0.2"

def valid_date(s):
"""Date Field Format used in argparse."""
Expand Down Expand Up @@ -132,7 +132,7 @@ def main():
parser.add_argument("--state", help="Filter by Job State", choices=["COMPLETED","FAILED","TIMEOUT","CANCELLED"])
parser.add_argument("-a", "--account", help="Display information on account shares that user belongs to",
action="store_true")
parer.add_argument("-v", "--version", help="Print version", version=f"%{prog} version {JOBSTAT_VERSION}" )
parser.add_argument("-v", "--version", help="Print version", action="version", version=f"%(prog)s version {JOBSTATS_VERSION}" )

args = parser.parse_args()

Expand Down

0 comments on commit 5293ca1

Please sign in to comment.