Mercurial > hg-stable
changeset 46759:eb14264b98e8
rhg: Fall back to Python for --version
Clap has some built-in support for printing something on --version,
but it looks different than what Pytho-based hg does.
Also, at the moment we’re not giving version numbers to rhg
separate from the Mercurial version.
Differential Revision: https://phab.mercurial-scm.org/D10144
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Mon, 08 Mar 2021 20:04:20 +0100 |
parents | 63bfcddddac1 |
children | b1e6265e8336 |
files | rust/rhg/src/main.rs |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rust/rhg/src/main.rs Mon Mar 08 19:25:33 2021 +0100 +++ b/rust/rhg/src/main.rs Mon Mar 08 20:04:20 2021 +0100 @@ -29,6 +29,7 @@ let app = App::new("rhg") .global_setting(AppSettings::AllowInvalidUtf8) + .global_setting(AppSettings::DisableVersion) .setting(AppSettings::SubcommandRequired) .setting(AppSettings::VersionlessSubcommands) .arg(