diff options
| author | Nadir Fejzic <nadirfejzo@gmail.com> | 2021-07-26 16:14:29 +0200 |
|---|---|---|
| committer | Nadir Fejzic <nadirfejzo@gmail.com> | 2021-07-26 16:14:29 +0200 |
| commit | 0e5802ef5de2ea13811be3febab3ca005eb6404f (patch) | |
| tree | a9eac29b38fd415729923ba961a485238abbeec2 /src | |
| parent | f68629a5097122c65eea0d5239555f5396ff0863 (diff) | |
| download | rust-0e5802ef5de2ea13811be3febab3ca005eb6404f.tar.gz rust-0e5802ef5de2ea13811be3febab3ca005eb6404f.zip | |
Include more information in --help
`--no-deps` filled in with a little more information. Explain that `--fix` implies `--no-deps`. Explain that `--no-deps` is used with `cargo clippy --`, including one example.
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index f79e70abc03..8685c08cefe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,11 +14,13 @@ Usage: cargo clippy [options] [--] [<opts>...] Common options: - --fix Automatically apply lint suggestions - --no-deps Run Clippy only on the given crate + --no-deps Run Clippy only on the given crate, without linting the dependencies + --fix Automatically apply lint suggestions. This flag implies `--no-deps` -h, --help Print this message -V, --version Print version info and exit +Note: --no-deps flag is used with `cargo clippy --`. Example: `cargo clippy -- --no-deps` + Other options are the same as `cargo check`. To allow or deny a lint from the command line you can use `cargo clippy --` |
