diff rust/rhg/src/main.rs @ 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 b1f2c2b336ec
children bde90e9b4507
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(