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,8 +393,9 @@ def send_heartbeat(project=None, branch=None, hostname=None, stats={}, key=None,
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def execute(argv):
|
def execute(argv=None):
|
||||||
sys.argv = ['wakatime'] + argv
|
if argv:
|
||||||
|
sys.argv = ['wakatime'] + argv
|
||||||
|
|
||||||
args, configs = parseArguments()
|
args, configs = parseArguments()
|
||||||
if configs is None:
|
if configs is None:
|
||||||
|
|
Loading…
Reference in a new issue