sq Learning better coding practices with Lex
This commit is contained in:
parent
ba00498d83
commit
826d2866fa
1 changed files with 2 additions and 2 deletions
|
@ -87,8 +87,8 @@ def set_kwargs(parsed_args):
|
|||
return kwargs
|
||||
|
||||
|
||||
def main():
|
||||
argv = sys.argv[1:]
|
||||
def main(argv=None):
|
||||
argv = argv or sys.argv[1:]
|
||||
if not argv:
|
||||
print_help()
|
||||
return 1
|
||||
|
|
Loading…
Reference in a new issue