Skip to content

Commit

Permalink
Add version command, closes #12
Browse files Browse the repository at this point in the history
  • Loading branch information
kynan committed Feb 15, 2016
1 parent a5056b7 commit e93e79e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nbstripout.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ def main():
sys.exit(install())
if sys.argv[1] in ['uninstall', '--uninstall']:
sys.exit(uninstall())
if sys.argv[1] in ['version', '--version']:
print(__version__)
sys.exit(0)

force = False
filenames = sys.argv[1:]
Expand Down

0 comments on commit e93e79e

Please sign in to comment.