diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 470d2378b3..ef8eced924 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -681,7 +681,7 @@ struct RestoreArgs { /// changes into or out of the parent revision. #[derive(clap::Args, Clone, Debug)] struct DiffeditArgs { - /// The revision to touch up. Defaults to @ if --to/--from are not + /// The revision to touch up. Defaults to @ if neither --to nor --from are /// specified. #[arg(long, short)] revision: Option, diff --git a/tests/test_global_opts.rs b/tests/test_global_opts.rs index 80a904294f..2f0fb34b32 100644 --- a/tests/test_global_opts.rs +++ b/tests/test_global_opts.rs @@ -407,7 +407,7 @@ fn test_help() { Usage: jj diffedit [OPTIONS] Options: - -r, --revision The revision to touch up. Defaults to @ if --to/--from are not specified + -r, --revision The revision to touch up. Defaults to @ if neither --to nor --from are specified --from Show changes from this revision. Defaults to @ if --to is specified --to Edit changes in this revision. Defaults to @ if --from is specified -h, --help Print help (see more with '--help')