Module clap_complete::generator::utils
source · Expand description
Helpers for writing generators
Functions
Gets all subcommands including child subcommands in the form of
("name", "bin_name")
.Finds the subcommand
clap::Command
from the given clap::Command
with the given path.Gets all the flags of a
clap::Command
.
Includes help
and version
depending on the clap::AppSettings
.Gets all the long options, their visible aliases and flags of a
clap::Command
.
Includes help
and version
depending on the clap::AppSettings
.Get the possible values for completion
Gets all the short options, their visible aliases and flags of a
clap::Command
.
Includes h
and V
depending on the clap::AppSettings
.Gets subcommands of
clap::Command
in the form of ("name", "bin_name")
.