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 missing "exe" variant and copy-paste mistakes in Format #196

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

MarijnS95
Copy link
Member

@MarijnS95 MarijnS95 commented Dec 22, 2024

Fixes #194, @SolidTux please test this.

Passing --format exe would fail, complaining that the "arch" exe is not supported. Copy-paste mistakes from "arch" to "format" aside, the "exe" string wasn't in the match arm (missed in da16695).

Realistically, as we are already utilizing clap, we should remove all this error-prone (proven by this example) open-coding of broken parsers and utilize their derives to automatically generate conversion functions.

This should at the same time assist us in generating help files, as the hardcoded documentation for --format currently states that exe is a supported value.

Passing `--format exe` would fail, complaining that the "arch" `exe`
is not supported.  Copy-paste mistakes from "arch" to "format" aside,
the `"exe"` string wasn't in the match arm.

Realistically, as we are already utilizing `clap`, we should remove
all this error-prone (proven by this example) open-coding of broken
parsers and utilize their derives to automatically generate conversion
functions.

This should at the same time assist us in generating help files, as the
hardcoded documentation for `--format` currently states that `exe` is a
supported value.
@MarijnS95 MarijnS95 merged commit be5b43f into master Jan 3, 2025
34 checks passed
@MarijnS95 MarijnS95 deleted the cp-errors branch January 3, 2025 14:31
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.

exe not recognized as a format
1 participant