Lines Matching refs:usage

1 #![cfg_attr(not(feature = "usage"), allow(unused_mut))]
117 /// version or help and usage information.
368 /// subcommands, version, usage, etc. They also function just like [`Command`]s, in that they get
369 /// their own auto generated help, version, and usage.
728 let usage = Usage::new(self);
729 write_help(&mut styled, self, &usage, false);
755 let usage = Usage::new(self);
756 write_help(&mut styled, self, &usage, true);
783 let usage = Usage::new(self);
784 write_help(&mut styled, self, &usage, false);
809 let usage = Usage::new(self);
810 write_help(&mut styled, self, &usage, true);
823 let usage = Usage::new(self);
824 write_help(&mut styled, self, &usage, false);
838 let usage = Usage::new(self);
839 write_help(&mut styled, self, &usage, true);
1657 /// Overrides the `clap` generated usage string for help and error messages.
1659 /// **NOTE:** Using this setting disables `clap`s "context-aware" usage
1660 /// strings. After this setting is set, this will be *the only* usage string
1663 /// **NOTE:** Multiple usage lines may be present in the usage argument, but
1664 /// some rules need to be followed to ensure the usage lines are formatted
1667 /// - Do not indent the first usage line.
1668 /// - Indent all subsequent usage lines with seven spaces.
1680 /// Or for multiple usage lines:
1693 /// [`ArgMatches::usage`]: ArgMatches::usage()
1695 pub fn override_usage(mut self, usage: impl IntoResettable<StyledStr>) -> Self {
1696 self.usage_str = usage.into_resettable().into_option();
1756 /// * `{usage-heading}` - Automatically generated usage heading.
1757 /// * `{usage}` - Automatically generated or given usage string.
1775 /// .help_template("{name} ({version}) - {usage}")
1788 /// {usage-heading} {usage}
3080 /// Sets the value name used for subcommands when printing usage and help.
3112 /// but usage of `subcommand_value_name`
3144 /// Sets the help heading used for subcommands when printing usage and help.
3176 /// but usage of `subcommand_help_heading`
3212 #[cfg(feature = "usage")]
3931 #[cfg(feature = "usage")]
3945 // Display subcommand name, short and long in usage
4017 #[cfg(feature = "usage")]
4042 // Display subcommand name, short and long in usage
4350 // Print usage string for flags arguments, e.g. <--help>
4372 #[cfg(any(feature = "usage", feature = "help"))]
4401 #[cfg(any(feature = "usage", feature = "help"))]
4569 let usage = Usage::new(self);
4572 write_help(&mut styled, self, &usage, use_long);