docs(args): Clarify command line arguments

This commit is contained in:
Ed Page 2021-01-04 13:37:56 -06:00
parent 02e8792e94
commit 70163fae61

View file

@ -43,7 +43,7 @@ impl Default for Format {
)]
pub(crate) struct Args {
#[structopt(parse(from_os_str), default_value = ".")]
/// Paths to check
/// Paths to check with `-` for stdin
pub(crate) path: Vec<std::path::PathBuf>,
#[structopt(short = "c", long = "config")]
@ -59,19 +59,19 @@ pub(crate) struct Args {
pub(crate) diff: bool,
#[structopt(long, short = "w")]
/// Write corrections out
/// Write fixes out
pub(crate) write_changes: bool,
#[structopt(long)]
/// Print each file that would be spellchecked.
/// Debug: Print each file that would be spellchecked.
pub(crate) files: bool,
#[structopt(long)]
/// Print each identifier that would be spellchecked.
/// Debug: Print each identifier that would be spellchecked.
pub(crate) identifiers: bool,
#[structopt(long)]
/// Print each word that would be spellchecked.
/// Debug: Print each word that would be spellchecked.
pub(crate) words: bool,
#[structopt(flatten)]