rhg: Fall back to Python for --version
authorSimon Sapin <simon.sapin@octobus.net>
Mon, 08 Mar 2021 20:04:20 +0100
changeset 46746 eb14264b98e8
parent 46745 63bfcddddac1
child 46747 b1e6265e8336
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
rust/rhg/src/main.rs
--- 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(