We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current behaviour of python -m mccabe (no positional argument provided) is an IndexError
python -m mccabe
IndexError
File "/home/junior/.local/lib/python3.10/site-packages/mccabe.py", line 327, in main code = _read(args[0]) IndexError: list index out of range
Also, for python -m mccabe file1 file2 it just ignores file2.
python -m mccabe file1 file2
file2
Would it be possible to add a check for a missing positional argument, and another for multiple ones?
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
The current behaviour of
python -m mccabe
(no positional argument provided) is anIndexError
Also, for
python -m mccabe file1 file2
it just ignoresfile2
.Would it be possible to add a check for a missing positional argument, and another for multiple ones?
The text was updated successfully, but these errors were encountered: