rhg: in rhg cat cli, fix the long name of the --rev flag
authorArseniy Alekseyev <aalekseyev@janestreet.com>
Tue, 05 Oct 2021 16:09:20 +0100
changeset 48172 08c8cd2527bc
parent 48171 64b8676f11bb
child 48173 1d70fb83ff4a
rhg: in rhg cat cli, fix the long name of the --rev flag Also tweak the help for the anonymous argument. Differential Revision: https://phab.mercurial-scm.org/D11617
rust/rhg/src/commands/cat.rs
tests/test-rhg.t
--- a/rust/rhg/src/commands/cat.rs	Thu Jun 24 14:23:11 2021 +0530
+++ b/rust/rhg/src/commands/cat.rs	Tue Oct 05 16:09:20 2021 +0100
@@ -16,7 +16,7 @@
             Arg::with_name("rev")
                 .help("search the repository as it is in REV")
                 .short("-r")
-                .long("--revision")
+                .long("--rev")
                 .value_name("REV")
                 .takes_value(true),
         )
@@ -26,7 +26,7 @@
                 .multiple(true)
                 .empty_values(false)
                 .value_name("FILE")
-                .help("Activity to start: activity@category"),
+                .help("Files to output"),
         )
         .about(HELP_TEXT)
 }
--- a/tests/test-rhg.t	Thu Jun 24 14:23:11 2021 +0530
+++ b/tests/test-rhg.t	Tue Oct 05 16:09:20 2021 +0100
@@ -121,6 +121,8 @@
   file-3
   $ $NO_FALLBACK rhg cat -r cf8b83 file-2
   2
+  $ $NO_FALLBACK rhg cat --rev cf8b83 file-2
+  2
   $ $NO_FALLBACK rhg cat -r c file-2
   abort: ambiguous revision identifier: c
   [255]