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::Command
from the givenclap::Command
with the given path. - flags
- Gets all the flags of a
clap::Command
. Includeshelp
andversion
depending on theclap::Command
settings. - longs_
and_ visible_ aliases - Gets all the long options, their visible aliases and flags of a
clap::Command
. Includeshelp
andversion
depending on theclap::Command
settings. - 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
. Includesh
andV
depending on theclap::Command
settings. - subcommands
- Gets subcommands of
clap::Command
in the form of("name", "bin_name")
.