Fixed the call from __main__

This commit is contained in:
Maximilien Rigaut 2022-02-08 18:43:34 +01:00
parent 69388774d2
commit f35cf79e0f
1 changed files with 4 additions and 1 deletions

View File

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