Lines Matching defs:long

46 ///       .long("config")
70 pub(crate) long: Option<Str>,
152 /// .long("host"))
154 /// .long("help")
175 /// Sets the long version of the argument without the preceding `--`.
178 /// arguments, respectively. You may use the word `version` or `help` for the long form of your
186 /// To set `long` use a word containing valid UTF-8. If you supply a double leading
190 /// Setting `long` allows using the argument via a double hyphen (`--`) such as `--config`
196 /// .long("config")
206 pub fn long(mut self, l: impl IntoResettable<Str>) -> Self {
207 self.long = l.into_resettable().into_option();
211 /// Add an alias, which functions as a hidden long flag.
222 /// .long("test")
270 /// Add aliases, which function as hidden long flags.
281 /// .long("test")
328 /// Add an alias, which functions as a visible long flag.
339 /// .long("test")
367 /// .long("test")
386 /// Add aliases, which function as visible long flags.
396 /// .long("test")
422 /// .long("test")
449 /// with [`Arg::short`] or [`Arg::long`].
475 /// .long("debug")
486 /// [`Arg::long`]: Arg::long()
642 /// .long("config"))
658 /// .long("config"))
701 /// .long("config"))
718 /// .long("config"))
760 /// .long("exclusive"))
762 /// .long("debug"))
798 /// .long("verbose")
869 /// .long("flag")
908 /// .long("color")
914 /// .long("hostname")
921 /// .long("port")
985 /// .long("mode")
999 /// .long("mode")
1123 /// .long("config")
1133 /// .long("config")
1176 /// **Pro Tip:** It may help to use [`Arg::next_line_help(true)`] if there are long, or
1195 /// .long("io-files")
1236 /// .long("user")
1277 /// .long("option")
1295 /// .long("option")
1344 /// .long("pattern"))
1360 /// .long("pattern"))
1425 /// .long("config"))
1442 /// .long("config"))
1489 /// .long("config")
1614 /// .long("myopt")
1631 /// .long("myopt")
1708 /// .arg(Arg::new("color").long("color")
1746 /// .arg(Arg::new("create").long("create")
1857 /// .long("flag")
1885 /// .long("true_flag")
1890 /// .long("false_flag")
1895 /// .long("absent_flag")
1918 /// .long("flag")
1939 /// .long("flag")
1960 /// .long("flag")
2021 /// .long("config")
2048 /// Sets the description of the argument for long help (`--help`).
2071 /// .long("config")
2131 /// .long("long-option")
2136 /// .long("other-option")
2160 /// -o, --long-option <a> Some help and text
2183 /// This can be helpful for arguments with very long or complex help messages.
2184 /// This can also be helpful for arguments with very long flag names, or many/long value names.
2196 /// .long("long-option-flag")
2201 /// .help("Some really long help and complex\n\
2219 /// -o, --long-option-flag <value1> <value2>
2220 /// Some really long help and complex
2247 /// .long("config")
2292 /// .long("mode")
2321 /// .long("host")
2350 /// .long("mode")
2379 /// .long("host")
2404 /// when long help (`--help`) is called.
2421 /// .long("config")
2448 /// .long("config")
2478 /// Hides an argument from long help (`--help`).
2483 /// when long help (`--help`) is called.
2487 /// Setting `hide_long_help(true)` will hide the argument when displaying long help text
2494 /// .long("config")
2521 /// .long("config")
2561 /// .long("debug")
2574 /// .long("debug")
2578 /// .long("verbose")
2605 /// .long("debug")
2618 /// .long("debug")
2622 /// .long("verbose")
2661 /// .long("flag")
2664 /// .long("other")
2679 /// .long("flag")
2682 /// .long("other")
2698 /// .long("opt"))
2700 /// .long("other")
2717 /// .long("opt"))
2719 /// .long("other")
2735 /// .long("flag")
2738 /// .long("other")
2794 /// .long("flag")
2797 /// .long("opt")
2800 /// .long("other")
2818 /// .long("flag")
2821 /// .long("other")
2841 /// .long("flag")
2844 /// .long("opt")
2847 /// .long("other")
2896 /// Set this arg as [required] as long as the specified argument is not present at runtime.
2919 /// .long("config"))
2921 /// .long("debug")
2938 /// .long("config"))
2940 /// .long("debug"))
2986 /// .long("config"))
2988 /// .long("debug")
3009 /// .long("config"))
3011 /// .long("debug")
3064 /// .long("config"))
3066 /// .long("debug")
3087 /// .long("config"))
3089 /// .long("debug")
3131 /// .long("config"))
3133 /// .long("other")
3145 /// .long("config"))
3147 /// .long("other")
3161 /// .long("config"))
3163 /// .long("other")
3176 /// .long("config"))
3178 /// .long("other")
3228 /// .long("config"))
3231 /// .long("extra"))
3234 /// .long("option"))
3254 /// .long("config"))
3257 /// .long("extra"))
3260 /// .long("option"))
3311 /// .long("config"))
3314 /// .long("extra"))
3317 /// .long("option"))
3337 /// .long("config"))
3340 /// .long("extra"))
3343 /// .long("option"))
3387 /// .long("config"))
3405 /// .long("config"))
3453 /// .long("config"))
3455 /// .long("option")
3478 /// .long("config"))
3544 /// .long("config"))
3546 /// .long("debug")
3599 /// .long("config"))
3601 /// .long("debug"))
3709 /// Get the long help specified for this argument, if any
3715 /// let arg = Arg::new("foo").long_help("long help");
3716 /// assert_eq!(Some("long help".to_owned()), arg.get_long_help().map(|s| s.to_string()));
3778 /// Get the long option name for this argument, if any
3781 self.long.as_deref()
3809 /// Get the long option name and its visible aliases, if any
3813 Some(long) => vec![long],
3928 /// let arg = Arg::new("foo").long("foo");
4144 // Write the name such --long or -l
4295 .field("long", &self.long)
4327 let mut f = Arg::new("flg").long("flag").action(ArgAction::SetTrue);
4343 let mut f2 = Arg::new("flg").long("flag").action(ArgAction::Count);
4352 .long("flag")
4396 let mut o = Arg::new("opt").long("option").action(ArgAction::Append);
4405 .long("option")
4416 .long("option")
4427 .long("option")
4462 .long("option")
4496 .long("option")
4507 .long("option")