Fixed the call from __main__
This commit is contained in:
parent
69388774d2
commit
f35cf79e0f
|
|
@ -4,5 +4,8 @@ import sys
|
|||
|
||||
# pragma: nocover # The main call can't be covered because it will only execute through the CLI
|
||||
if __name__ == "__main__":
|
||||
criteriaSorter.main(sys.argv)
|
||||
if len(sys.argv)>1:
|
||||
criteriaSorter.main(sys.argv[1:])
|
||||
else:
|
||||
criteriaSorter.main(("-h",))
|
||||
sys.exit(0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue