Lines Matching defs:version

58 ///     .version("1.0.2")
78 version: Option<Str>,
117 /// version or help and usage information.
209 /// This can be useful for modifying the auto-generated help or version arguments.
319 /// .arg(arg!("--set-ver [ver] 'set the version manually'"))
342 /// .arg(arg!("--set-ver [ver] 'set the version manually'"))
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.
519 /// **NOTE:** This method WILL NOT exit when `--help` or `--version` (or short versions) are
586 /// **NOTE:** This method WILL NOT exit when `--help` or `--version` (or short versions) are
631 /// **NOTE:** This method WILL NOT exit when `--help` or `--version` (or short versions) are
861 /// [`-V` (short)]: Command::version()
862 /// [`--version` (long)]: Command::long_version()
868 /// Version message rendered as if the user ran `--version`.
885 /// [`-V` (short)]: Command::version()
886 /// [`--version` (long)]: Command::long_version()
1110 /// Disables `-V` and `--version` flag.
1133 /// Specifies to use the version of the current command for all [`subcommands`].
1135 /// Defaults to `false`; subcommands have independent version strings from their parents.
1144 /// .version("v1.1")
1148 /// // running `$ myprog test --version` will display
1608 /// Sets the version for the short version (`-V`) and help messages.
1610 /// If [`Command::long_version`] is not specified, this message will be displayed for `--version`.
1613 /// automatically set your application's version to the same thing as your
1621 /// .version("v0.1.24")
1625 pub fn version(mut self, ver: impl IntoResettable<Str>) -> Self {
1626 self.version = ver.into_resettable().into_option();
1630 /// Sets the version for the long version (`--version`) and help messages.
1632 /// If [`Command::version`] is not specified, this message will be displayed for `-V`.
1635 /// automatically set your application's version to the same thing as your
1722 /// -V, --version Display version info\n\
1748 /// * `{version}` - Version number.
1774 /// .version("1.0")
1775 /// .help_template("{name} ({version}) - {usage}")
1784 /// .version("1.0")
1786 /// {before-help}{name} {version}
2172 /// Sets the short version of the subcommand flag without the preceding `-`.
2203 /// Sets the long version of the subcommand flag without the preceding `--`.
2645 /// -V, --version Print version
3109 /// -V, --version Print version
3136 /// -V, --version Print version
3173 /// -V, --version Print version
3200 /// -V, --version Print version
3246 /// Get the version of the cmd.
3249 self.version.as_deref()
3252 /// Get the long version of the cmd.
3578 || (self.version.is_none() && self.long_version.is_none())
4215 if let Some(version) = self.version.as_ref() {
4216 sc.version.get_or_insert_with(|| version.clone());
4256 debug!("Command::_check_help_and_version: Building default --version");
4259 .long("version")
4261 .help("Print version");
4279 help_help_subcmd.version = None;
4299 help_subcmd.version = None;
4328 .or(self.version.as_deref())
4331 self.version
4634 version: Default::default(),