Skip to content

Commit

Permalink
docs(args): Clarify what args are esclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed Page committed Jan 5, 2021
1 parent 70163fa commit f27282f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ impl Default for Format {
setting = structopt::clap::AppSettings::DeriveDisplayOrder,
setting = structopt::clap::AppSettings::DontCollapseArgsInUsage
)]
#[structopt(group = structopt::clap::ArgGroup::with_name("mode").multiple(false))]
pub(crate) struct Args {
#[structopt(parse(from_os_str), default_value = ".")]
/// Paths to check with `-` for stdin
Expand All @@ -54,23 +55,23 @@ pub(crate) struct Args {
/// Ignore implicit configuration files.
pub(crate) isolated: bool,

#[structopt(long)]
#[structopt(long, group = "mode")]
/// Print a diff of what would change
pub(crate) diff: bool,

#[structopt(long, short = "w")]
#[structopt(long, short = "w", group = "mode")]
/// Write fixes out
pub(crate) write_changes: bool,

#[structopt(long)]
#[structopt(long, group = "mode")]
/// Debug: Print each file that would be spellchecked.
pub(crate) files: bool,

#[structopt(long)]
#[structopt(long, group = "mode")]
/// Debug: Print each identifier that would be spellchecked.
pub(crate) identifiers: bool,

#[structopt(long)]
#[structopt(long, group = "mode")]
/// Debug: Print each word that would be spellchecked.
pub(crate) words: bool,

Expand Down

0 comments on commit f27282f

Please sign in to comment.