From 0e5802ef5de2ea13811be3febab3ca005eb6404f Mon Sep 17 00:00:00 2001 From: Nadir Fejzic Date: Mon, 26 Jul 2021 16:14:29 +0200 Subject: [PATCH] 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. --- src/main.rs | 6 ++++-- 1 file 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] [--] [...] 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 --`