Skip to content

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

2 participants