Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Commit

Permalink
Return version for -v or --version
Browse files Browse the repository at this point in the history
  • Loading branch information
OrkoHunter committed Dec 8, 2015
1 parent c18bde1 commit d61254b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ping_me/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def main():
if args.e:
detailed_usage()
sys.exit(2)
if args.version:
import release
print(release.__version__)
sys.exit(2)

if args.DATE != None and args.TIME != None:
message = ' '.join(args.message).lstrip('to ')
Expand Down
2 changes: 1 addition & 1 deletion ping_me/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name = 'ping-me'
major = '0'
minor = '2'
minor = '1'

__version__ = major + '.' + minor

Expand Down

0 comments on commit d61254b

Please sign in to comment.