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
|
||||
|
||||
|
||||
def execute(argv):
|
||||
sys.argv = ['wakatime'] + argv
|
||||
def execute(argv=None):
|
||||
if argv:
|
||||
sys.argv = ['wakatime'] + argv
|
||||
|
||||
args, configs = parseArguments()
|
||||
if configs is None:
|
||||
|
|
Loading…
Reference in a new issue