pub fn select<'d>(
doc: &'d Document,
matches: &ArgMatches,
) -> Result<Selection<'d>, DispatchError>Expand description
Read the two subcommands the user typed, whichever command the groups were mounted on.
matches belongs to that command: the root itself when the operations are
the whole CLI, or the raw subcommand when they sit under one. This
function reads the group below it and the operation below that, and never
looks above it, which is what lets the same tree mount anywhere.