From 8d560748c7d12b8523382206a6214e186dbb2a79 Mon Sep 17 00:00:00 2001 From: Benjamin Tan Date: Sat, 28 Dec 2024 02:41:48 +0800 Subject: [PATCH] cli: help: fix typos --- cli/src/commands/help.rs | 4 ++-- cli/tests/cli-reference@.md.snap | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cli/src/commands/help.rs b/cli/src/commands/help.rs index 7f4d36ad68..65712110cc 100644 --- a/cli/src/commands/help.rs +++ b/cli/src/commands/help.rs @@ -62,7 +62,7 @@ pub(crate) fn cmd_help( args_to_show_help.extend(args.command.iter().map(|s| s.as_str())); args_to_show_help.push("--help"); - // TODO: `help log -- -r` will gives an cryptic error, ideally, it should state + // TODO: `help log -- -r` will give a cryptic error, ideally, it should state // that the subcommand `log -r` doesn't exist. let help_err = command .app() @@ -140,7 +140,7 @@ pub fn show_keyword_hint_after_help() -> StyledStr { let mut ret = StyledStr::new(); writeln!( ret, - "{} list available keywords. Use {} to show help for one of these keywords.", + "{} lists available keywords. Use {} to show help for one of these keywords.", "'jj help --help'".bold(), "'jj help -k'".bold(), ) diff --git a/cli/tests/cli-reference@.md.snap b/cli/tests/cli-reference@.md.snap index ea7cbd178c..49fe4c2156 100644 --- a/cli/tests/cli-reference@.md.snap +++ b/cli/tests/cli-reference@.md.snap @@ -1,7 +1,6 @@ --- source: cli/tests/test_generate_md_cli_help.rs description: "AUTO-GENERATED FILE, DO NOT EDIT. This cli reference is generated by a test as an `insta` snapshot. MkDocs includes this snapshot from docs/cli-reference.md." -snapshot_kind: text --- @@ -116,7 +115,7 @@ To get started, see the tutorial at https://jj-vcs.github.io/jj/latest/tutorial/ **Usage:** `jj [OPTIONS] [COMMAND]` -'jj help --help' list available keywords. Use 'jj help -k' to show help for one of these keywords. +'jj help --help' lists available keywords. Use 'jj help -k' to show help for one of these keywords. ###### **Subcommands:**