This is a small change (possibly with big implications) - I don't want to break anything so making this a PR.
sys.exit() here should crash the program with no input arguments, after outputting the message that nothing was supplied.
The problem is that it will proceed with exit and fail deeper in the code in what looks like a bug, but actually was just there was no inputs supplied.
This is a small change (possibly with big implications) - I don't want to break anything so making this a PR.
sys.exit()
here should crash the program with no input arguments, after outputting the message that nothing was supplied.The problem is that it will proceed with
exit
and fail deeper in the code in what looks like a bug, but actually was just there was no inputs supplied.