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

Required free argument error is not very helpful #53

Open
JordiPolo opened this issue Sep 6, 2021 · 0 comments
Open

Required free argument error is not very helpful #53

JordiPolo opened this issue Sep 6, 2021 · 0 comments

Comments

@JordiPolo
Copy link

JordiPolo commented Sep 6, 2021

With a struct like

#[derive(Debug, Options)]
pub(crate) struct RawConfig {
    #[options(free, required, help = "File to run")]
    pub file_to_run: String,
    ....
    }

When run without any free parameters I get:
missing required free argument

Where I'd hope to get something like missing required argument file_to_run or such. I think users of this application will not understand what the free argument means, probably will try to call with a --free option or something.

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

No branches or pull requests

1 participant