Skip to content

Required free argument error is not very helpful #53

@JordiPolo

Description

@JordiPolo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions