Skip to content

Commit 0e5802e

Browse files
committed
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.
1 parent f68629a commit 0e5802e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,13 @@ Usage:
1414
cargo clippy [options] [--] [<opts>...]
1515
1616
Common options:
17-
--fix Automatically apply lint suggestions
18-
--no-deps Run Clippy only on the given crate
17+
--no-deps Run Clippy only on the given crate, without linting the dependencies
18+
--fix Automatically apply lint suggestions. This flag implies `--no-deps`
1919
-h, --help Print this message
2020
-V, --version Print version info and exit
2121
22+
Note: --no-deps flag is used with `cargo clippy --`. Example: `cargo clippy -- --no-deps`
23+
2224
Other options are the same as `cargo check`.
2325
2426
To allow or deny a lint from the command line you can use `cargo clippy --`

0 commit comments

Comments
 (0)