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.
This commit is contained in:
parent
f68629a509
commit
0e5802ef5d
1 changed files with 4 additions and 2 deletions
|
@ -14,11 +14,13 @@ Usage:
|
||||||
cargo clippy [options] [--] [<opts>...]
|
cargo clippy [options] [--] [<opts>...]
|
||||||
|
|
||||||
Common options:
|
Common options:
|
||||||
--fix Automatically apply lint suggestions
|
--no-deps Run Clippy only on the given crate, without linting the dependencies
|
||||||
--no-deps Run Clippy only on the given crate
|
--fix Automatically apply lint suggestions. This flag implies `--no-deps`
|
||||||
-h, --help Print this message
|
-h, --help Print this message
|
||||||
-V, --version Print version info and exit
|
-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`.
|
Other options are the same as `cargo check`.
|
||||||
|
|
||||||
To allow or deny a lint from the command line you can use `cargo clippy --`
|
To allow or deny a lint from the command line you can use `cargo clippy --`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue