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

fix: simplify --failonwarnings documentation #1591

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

rdeltour
Copy link
Member

The help text presented option --failonwarnings as if it also allowed values --failonwarnings+ and --failonwarnings- to respectively enable and disable warning messages.

The CLI implementation did not recognize these options. In addition, the single option --failonwarnings is sufficient, since the default behavior is to not return an error code when warnings are reported.

This commit fixes the CLI help text, and tweak the implementation to remove traces of the legacy --failonwarnings+ and --failonwarnings- options.

Fixes #1575

The help text presented option `--failonwarnings` as if it also allowed
values `--failonwarnings+` and `--failonwarnings-` to respectively
enable and disable warning messages.

The CLI implementation did not recognize these options. In addition, the
single option `--failonwarnings` is sufficient, since the default behavior
is to not return an error code when warnings are reported.

This commit fixes the CLI help text, and tweak the implementation to
remove traces of the legacy `--failonwarnings+` and `--failonwarnings-`
options.

Fixes #1575
@rdeltour rdeltour added this to the Next maintenance release milestone Dec 28, 2024
@rdeltour rdeltour self-assigned this Dec 28, 2024
Base automatically changed from fix/cli-version-option to main December 29, 2024 00:04
@rdeltour rdeltour merged commit f27958c into main Dec 29, 2024
9 checks passed
@rdeltour rdeltour deleted the fix/cli-failonwarnings-option branch December 29, 2024 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

epubcheck 5.1.0 does not recognize --failonwarnings+, nor --failonwarnings-
1 participant