Skip to main content

has_subcommand

Function has_subcommand 

Source
pub fn has_subcommand(matches: &ArgMatches) -> bool
Expand description

Returns true if the matches contain a subcommand (excluding “help”).

Used to detect “naked” CLI invocations where no command was specified.