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 alternative output formats #1188

Merged
merged 1 commit into from
Nov 10, 2024
Merged

Conversation

slotThe
Copy link
Contributor

@slotThe slotThe commented Nov 10, 2024

The new value parser introduced in [1] did not parse the option into a Format, but rather into a string, thus breaking alternative output formats, as a different type was expected.

Fixes: #1170

[1]: 9627a24 (Fix cargo audit issues (#1137))


N.b: Should this be reported as a bug somewhere? Type errors being propagated to runtime sounds like something clap should not do.

The new value parser introduced in [1] did not parse the option into a
`Format`, but rather into a string, thus breaking alternative output
formats, as a different type was expected.

Fixes: XAMPPRocky#1170

[1]: 9627a24
     (Fix cargo audit issues (XAMPPRocky#1137))
@XAMPPRocky
Copy link
Owner

Thank you for your PR! Feel free to report it to clap's repo, I agree that it shouldn't happen.

@XAMPPRocky XAMPPRocky merged commit 91f2043 into XAMPPRocky:master Nov 10, 2024
71 checks passed
@slotThe slotThe deleted the fix-output branch November 10, 2024 12:33
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

Successfully merging this pull request may close these issues.

[Bug] Failed to output json.
2 participants