recognize api_key config without underscore

This commit is contained in:
Alan Hamlett 2015-01-19 20:08:48 -08:00
parent 6e227b115a
commit bf06e558e5

View file

@ -191,6 +191,8 @@ def parseArguments(argv):
default_key = None
if configs.has_option('settings', 'api_key'):
default_key = configs.get('settings', 'api_key')
elif configs.has_option('settings', 'apikey'):
default_key = configs.get('settings', 'apikey')
if default_key:
args.key = default_key
else: