Skip to content

Commit

Permalink
cli: help: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjmnt4n committed Dec 27, 2024
1 parent 2f14ad2 commit 8d56074
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/src/commands/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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(),
)
Expand Down
3 changes: 1 addition & 2 deletions cli/tests/cli-reference@.md.snap
Original file line number Diff line number Diff line change
@@ -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
---
<!-- BEGIN MARKDOWN-->

Expand Down Expand Up @@ -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:**
Expand Down

0 comments on commit 8d56074

Please # to comment.