added setting hostname in .wakatime.cfg
This commit is contained in:
parent
f8a90e5bff
commit
8c24a5c590
1 changed files with 3 additions and 0 deletions
|
@ -185,6 +185,9 @@ def parseArguments():
|
||||||
return args, configs
|
return args, configs
|
||||||
|
|
||||||
# update args from 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:
|
if not args.key:
|
||||||
default_key = None
|
default_key = None
|
||||||
if configs.has_option('settings', 'api_key'):
|
if configs.has_option('settings', 'api_key'):
|
||||||
|
|
Loading…
Reference in a new issue