Skip to content

Commit

Permalink
Show version number (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
unnonouno authored Oct 17, 2016
1 parent 89b6ea2 commit 34baf55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jqp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def run(in_io, out_io, cmd):
def main():
parser = argparse.ArgumentParser()
parser.add_argument('cmd')
parser.add_argument(
'--version', action='version', version='jqp %s' % __version__,
help='show version and exit')
args = parser.parse_args()

run(sys.stdin, sys.stdout, args.cmd)

0 comments on commit 34baf55

Please sign in to comment.