cli: help: fix typos
Some checks are pending
binaries / Build binary artifacts (push) Waiting to run
nix / flake check (push) Waiting to run
build / build (, macos-13) (push) Waiting to run
build / build (, macos-14) (push) Waiting to run
build / build (, ubuntu-latest) (push) Waiting to run
build / build (, windows-latest) (push) Waiting to run
build / build (--all-features, ubuntu-latest) (push) Waiting to run
build / Build jj-lib without Git support (push) Waiting to run
build / Check protos (push) Waiting to run
build / Check formatting (push) Waiting to run
build / Check that MkDocs can build the docs (push) Waiting to run
build / Check that MkDocs can build the docs with latest Python and uv (push) Waiting to run
build / cargo-deny (advisories) (push) Waiting to run
build / cargo-deny (bans licenses sources) (push) Waiting to run
build / Clippy check (push) Waiting to run
Codespell / Codespell (push) Waiting to run
website / prerelease-docs-build-deploy (ubuntu-latest) (push) Waiting to run
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run

This commit is contained in:
Benjamin Tan 2024-12-28 02:41:48 +08:00
parent 2f14ad25a7
commit 8d560748c7
2 changed files with 3 additions and 4 deletions

View file

@ -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(),
)

View file

@ -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-->
@ -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:**