Lines Matching defs:short

45 ///       .short('c')
69 pub(crate) short: Option<char>,
120 /// Sets the short version of the argument without the preceding `-`.
129 /// When calling `short`, use a single valid UTF-8 character which will allow using the
136 /// .short('c')
151 /// .short('h')
165 pub fn short(mut self, s: impl IntoResettable<char>) -> Self {
167 debug_assert!(s != '-', "short option name cannot be `-`");
168 self.short = Some(s);
170 self.short = None;
240 /// Add an alias, which functions as a hidden short flag.
251 /// .short('t')
262 debug_assert!(name != '-', "short alias name cannot be `-`");
298 /// Add aliases, which functions as a hidden short flag.
309 /// .short('t')
322 debug_assert!(s != '-', "short alias name cannot be `-`");
357 /// Add an alias, which functions as a visible short flag.
378 debug_assert!(name != '-', "short alias name cannot be `-`");
412 /// Add aliases, which function as visible short flags.
433 debug_assert!(n != '-', "short alias name cannot be `-`");
449 /// with [`Arg::short`] or [`Arg::long`].
485 /// [`Arg::short`]: Arg::short()
799 /// .short('v')
958 /// - Use a short and no space such as `-ovalue`
1030 /// .short('F'));
1056 /// .short('F'))
1083 /// .short('F'))
1186 /// .short('s')
1235 /// .short('u')
1294 /// .short('o')
1488 /// .short('c')
1999 /// Sets the description of the argument for short help (`-h`).
2001 /// Typically, this is a short (one line) description of the arg.
2013 /// Setting `help` displays a short message to the side of the argument when the user passes
2063 /// Setting `help` displays a short message to the side of the argument when the user passes
2132 /// .short('o')
2137 /// .short('O')
2197 /// .short('o')
2399 /// Hides an argument from short help (`-h`).
2414 /// Setting `hide_short_help(true)` will hide the argument when displaying short help text
2991 /// .short('i')
3014 /// .short('i')
3069 /// .short('i')
3092 /// .short('i')
3733 /// Get the short option name for this argument, if any
3736 self.short
3739 /// Get visible short aliases for this argument, if any
3755 /// Get *all* short aliases for this argument, if any, both visible and hidden.
3765 /// Get the short option name and its visible aliases, if any
3768 let mut shorts = match self.short {
3769 Some(short) => vec![short],
4294 .field("short", &self.short)
4335 let mut f2 = Arg::new("flg").short('f').action(ArgAction::SetTrue);
4362 let mut f = Arg::new("flg").short('f').action(ArgAction::SetTrue);
4376 let mut f = Arg::new("flg").short('a').action(ArgAction::SetTrue);
4385 let mut f = Arg::new("flg").short('a').action(ArgAction::SetTrue);
4438 .short('o')
4450 .short('o')
4473 .short('o')
4484 .short('o')
4519 .short('a')
4530 .short('a')