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

Commit

Permalink
allow hemlock to be run without arguments and skip connection questions
Browse files Browse the repository at this point in the history
  • Loading branch information
cglewis committed Sep 16, 2013
1 parent e4c3ec8 commit 4c2287a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hemlock/hemlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1191,6 +1191,9 @@ def get_auth(self):
# extract command-line switches
(options, args_leftover) = Hemlock().parse_auth()

if not args_leftover:
return args_leftover, options.user, options.pw, options.db, options.server, options.c_server, options.bucket, options.c_pw, options.es, options.debug

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

0 comments on commit 4c2287a

Please sign in to comment.