added setting hostname in .wakatime.cfg

This commit is contained in:
Daniel Fourie 2016-07-06 08:46:40 +02:00
parent f8a90e5bff
commit 8c24a5c590

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'):