Skip to main content

FdlArgs

Derive Macro FdlArgs 

Source
#[derive(FdlArgs)]
{
    // Attributes available to this derive:
    #[option]
    #[arg]
    #[command]
}
Expand description

Derive macro for FdlArgs. Generates argv parsing, --fdl-schema emission, and --help rendering from a single struct definition. Derive FdlArgs to generate an argv parser, --fdl-schema JSON emitter, and ANSI-coloured --help renderer.

On a struct with named fields, each field is a flag or positional. On an enum of newtype variants, each variant is a subcommand that delegates to the wrapped type. See the crate-level docs for the attribute reference and worked examples of both forms.