docs(cli): Clarify '-' behavior

Fixes #1271
This commit is contained in:
Ed Page
2025-04-10 11:06:50 -05:00
parent 39c73d3922
commit 3464de2114
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ impl Format {
#[command(about, author, version)]
#[command(group = clap::ArgGroup::new("mode").multiple(false))]
pub(crate) struct Args {
/// Paths to check with `-` for stdin
/// Paths to check (`-` to check stdin)
#[arg(default_value = ".", group = "source")]
pub(crate) path: Vec<std::path::PathBuf>,
+1 -1
View File
@@ -6,7 +6,7 @@ Source Code Spelling Correction
Usage: typos[EXE] [OPTIONS] [PATH]...
Arguments:
[PATH]... Paths to check with `-` for stdin [default: .]
[PATH]... Paths to check (`-` to check stdin) [default: .]
Options:
--file-list <FILE_LIST> Read the list of newline separated paths from file or stdin (if `-`)