Merge pull request #55 from bobfourie/master

added setting hostname in .wakatime.cfg
This commit is contained in:
Alan Hamlett 2016-07-06 09:18:28 +02:00 committed by GitHub
commit 835a031c2b
1 changed files with 3 additions and 0 deletions

View File

@ -185,6 +185,9 @@ def parseArguments():
return args, configs
# update args from configs
if not args.hostname:
if configs.has_option('settings', 'hostname'):
args.hostname = configs.get('settings', 'hostname')
if not args.key:
default_key = None
if configs.has_option('settings', 'api_key'):