Lines Matching defs:alias
1332 /// `--te` to `--test` there could not also be another argument or alias `--temp` because both
1353 /// to `test` there could not also be a subcommand or alias `temp` because both start with `te`
2241 /// Sets a hidden alias to this subcommand.
2244 /// alias. This is more efficient and easier than creating multiple hidden subcommands as one
2261 /// .alias("do-stuff"))
2267 pub fn alias(mut self, name: impl IntoResettable<Str>) -> Self {
2276 /// Add an alias, which functions as "hidden" short flag subcommand
2295 debug_assert!(name != '-', "short alias name cannot be `-`");
2303 /// Add an alias, which functions as a "hidden" long flag subcommand.
2386 debug_assert!(s != '-', "short alias name cannot be `-`");
2419 /// Sets a visible alias to this subcommand.
2422 /// original name or the given alias. This is more efficient and easier
2426 /// **NOTE:** The alias defined with this method is *visible* from the help
2428 /// looking for an alias that will not be displayed in the help message, see
2429 /// [`Command::alias`].
2445 /// [`Command::alias`]: Command::alias()
2456 /// Add an alias, which functions as "visible" short flag subcommand
2478 debug_assert!(name != '-', "short alias name cannot be `-`");
2486 /// Add an alias, which functions as a "visible" long flag subcommand.
2522 /// **NOTE:** The alias defined with this method is *visible* from the help
2524 /// looking for an alias that will not be displayed in the help message, see
2525 /// [`Command::alias`].
2541 /// [`Command::alias`]: Command::alias()
2567 debug_assert!(s != '-', "short alias name cannot be `-`");
4413 self.get_name() == name || self.get_all_aliases().any(|alias| alias == name)
4421 || self.get_all_short_flag_aliases().any(|alias| flag == alias)
4430 long_flag == flag || self.get_all_long_flag_aliases().any(|alias| alias == flag)
4432 None => self.get_all_long_flag_aliases().any(|alias| alias == flag),
4542 /// Find a flag subcommand name by short flag or an alias
4549 /// Find a flag subcommand name by long flag or an alias