fn collect_commands( command: &Command, ancestry: &str, into: &mut BTreeMap<String, String>, ) -> Result<(), Error>
Records one command and recurses into its subcommands.