Skip to content

Commit

Permalink
docs: improve help message
Browse files Browse the repository at this point in the history
  • Loading branch information
suo committed Apr 18, 2022
1 parent 0241c01 commit 0630560
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct Args {

/// Shell command that returns new-line separated paths to lint
///
/// Example: --paths-cmd 'git ls-files path/to/project'
/// Example: To run on all files in the repo, use `--paths-cmd='git grep -Il .'`.
#[clap(long, conflicts_with = "paths-from")]
paths_cmd: Option<String>,

Expand Down Expand Up @@ -69,7 +69,9 @@ struct Args {
#[clap(subcommand)]
cmd: Option<SubCommand>,

/// Paths to lint.
/// Paths to lint. lintrunner will still respect the inclusions and
/// exclusions defined in .lintrunner.toml; manually specifying a path will
/// not override them.
#[clap(conflicts_with_all = &["paths-cmd", "paths-from"])]
paths: Vec<String>,

Expand Down

0 comments on commit 0630560

Please sign in to comment.