Skip to content
New issue

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

Omit numbering of errors if there's only one #138

Open
ivan-aksamentov opened this issue Oct 12, 2023 · 1 comment
Open

Omit numbering of errors if there's only one #138

ivan-aksamentov opened this issue Oct 12, 2023 · 1 comment

Comments

@ivan-aksamentov
Copy link

Currently the numbering of the list of errors is shown even if there is only one error:

Error:
   0: There is only one error

Location:
...

I propose to remove the numbering in this case, because some of our users are confused by this 0: somehow. Some think that it's an erroneous file name or even line number (i.e. if a file parsing error is reported) or an error code.

The numbering of the error messages is not something that's common in other CLI frameworks.

@ten3roberts
Copy link
Contributor

Would you also like if we made the error numbering configurable too, such that it can be entirely removed or replaced with a dash-style list?

- Error message
- Other error message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants