diff --git a/ping_me/ping.py b/ping_me/ping.py index 90208d6..89d7105 100644 --- a/ping_me/ping.py +++ b/ping_me/ping.py @@ -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 ') diff --git a/ping_me/release.py b/ping_me/release.py index 733fdfe..76d680f 100644 --- a/ping_me/release.py +++ b/ping_me/release.py @@ -2,7 +2,7 @@ name = 'ping-me' major = '0' -minor = '2' +minor = '1' __version__ = major + '.' + minor