Skip to content

Commit

Permalink
fix CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
Weixuan Fu committed Jun 28, 2017
1 parent 8a20919 commit 8672442
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tpot/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,11 @@ def load_scoring_function(scoring_func):

return scoring_func

def main(args):
def main(args=None):
"""Perform a TPOT run."""
if args is None:
args = sys.argv[1:]

if args.VERBOSITY >= 2:
_print_args(args)

Expand Down

0 comments on commit 8672442

Please sign in to comment.