Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Commit

Permalink
add version option
Browse files Browse the repository at this point in the history
  • Loading branch information
cglewis committed Sep 16, 2013
1 parent 91e956b commit e4c3ec8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hemlock/hemlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1130,6 +1130,7 @@ def parse_auth(self):
parser.add_option("-w", "--couchbase-password", action="store", dest="c_pw", help="Couchbase Password")
parser.add_option("-e", "--elasticsearch-endpoint", action="store", dest="es", help="ElasticSearch Endpoint")
parser.add_option("-D", "--debug", action="store_false", dest="debug", help="Debugging Mode")
parser.add_option("-v", "--version", action="store_false", dest="version", help="Version")
return parser.parse_args()

def read_creds(self, debug):
Expand Down Expand Up @@ -1190,6 +1191,10 @@ def get_auth(self):
# extract command-line switches
(options, args_leftover) = Hemlock().parse_auth()

if options.version != None:
print "Version: 0.1.2"
sys.exit(0)

if options.debug == None:
options.debug = 0
else:
Expand Down

0 comments on commit e4c3ec8

Please sign in to comment.