sq Learning better coding practices with Lex

This commit is contained in:
hackrush 2018-07-27 17:53:37 +05:30 committed by Jack Robison
parent ba00498d83
commit 826d2866fa
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -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