Skip to main content

Parser

Derive Macro Parser 

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

Derive macro generating top-level Parser implementation.

This macro currently only accepts non-generic structs, and is a superset of Args. derive(Args) must NOT be used if there is already derive(Parser).

All attributes supported on the struct are identical to Args.