make passing arguments to execute function optional, using sys.argv instead
This commit is contained in:
parent
736d80c9de
commit
3bd40b013e
1 changed files with 3 additions and 2 deletions
|
@ -393,7 +393,8 @@ def send_heartbeat(project=None, branch=None, hostname=None, stats={}, key=None,
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def execute(argv):
|
def execute(argv=None):
|
||||||
|
if argv:
|
||||||
sys.argv = ['wakatime'] + argv
|
sys.argv = ['wakatime'] + argv
|
||||||
|
|
||||||
args, configs = parseArguments()
|
args, configs = parseArguments()
|
||||||
|
|
Loading…
Reference in a new issue