diff --git a/rust/rhg/src/commands/cat.rs b/rust/rhg/src/commands/cat.rs --- a/rust/rhg/src/commands/cat.rs +++ b/rust/rhg/src/commands/cat.rs @@ -16,7 +16,7 @@ pub fn args() -> clap::App<'static, 'sta 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 @@ pub fn args() -> clap::App<'static, 'sta .multiple(true) .empty_values(false) .value_name("FILE") - .help("Activity to start: activity@category"), + .help("Files to output"), ) .about(HELP_TEXT) } diff --git a/tests/test-rhg.t b/tests/test-rhg.t --- a/tests/test-rhg.t +++ b/tests/test-rhg.t @@ -121,6 +121,8 @@ Specifying revisions by changeset ID 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]