Expand description
Helpers for writing generators
Functionsยง
- all_
subcommands - Gets all subcommands including child subcommands in the form of
("name", "bin_name"). - find_
subcommand_ with_ path - Finds the subcommand
clap::Commandfrom the givenclap::Commandwith the given path. - flags
- Gets all the flags of a
clap::Command. Includeshelpandversiondepending on theclap::Commandsettings. - longs_
and_ visible_ aliases - Gets all the long options, their visible aliases and flags of a
clap::Command. Includeshelpandversiondepending on theclap::Commandsettings. - possible_
values - Get the possible values for completion
- shorts_
and_ visible_ aliases - Gets all the short options, their visible aliases and flags of a
clap::Command. IncludeshandVdepending on theclap::Commandsettings. - subcommands
- Gets subcommands of
clap::Commandin the form of("name", "bin_name").