-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Return 1 on error? #9
Comments
@tbm I was just about to report the very same issue. Great minds think alike, eh!? ;^) @jwilk It would be nice to be able to use
Yes, the above pipeline is a naive one as it ignores manual pages of the same name but from a different sections, i.e. |
Well, anorack did its job, so conceptually the exit status 0 sounds right. I know some other code analysis tools return non-zero when they find something, so if any of you feel strongly about it, I guess I could be presuaded to follow the suit. Or I could leave the current behavior, and add an option (say In the mean time, you can use something like |
If it's all same to you I'd still vote for option 1 - return non-zero error code if an incorrect article has been found. It doesn't really need to be 1, in case you'd prefer to reserve it for other errors, i.e. runtime. Alternatively, if you'd rather not change the program's default behaviour, I like the third option the least due to involvement of |
Would it make sense to return 1 is a mistake is found?
The text was updated successfully, but these errors were encountered: