mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 02:38:25 +00:00
Document that --diff
implies --fix-only
(#4098)
This commit is contained in:
parent
7266eb0d69
commit
b9c06b48e1
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ pub struct CheckArgs {
|
|||
#[clap(long, overrides_with("show_fixes"), hide = true)]
|
||||
no_show_fixes: bool,
|
||||
/// Avoid writing any fixed files back; instead, output a diff for each
|
||||
/// changed file to stdout.
|
||||
/// changed file to stdout. Implies `--fix-only`.
|
||||
#[arg(long, conflicts_with = "show_fixes")]
|
||||
pub diff: bool,
|
||||
/// Run in watch mode by re-running whenever files change.
|
||||
|
|
|
@ -201,7 +201,7 @@ Options:
|
|||
--show-fixes
|
||||
Show an enumeration of all autofixed lint violations
|
||||
--diff
|
||||
Avoid writing any fixed files back; instead, output a diff for each changed file to stdout
|
||||
Avoid writing any fixed files back; instead, output a diff for each changed file to stdout. Implies `--fix-only`
|
||||
-w, --watch
|
||||
Run in watch mode by re-running whenever files change
|
||||
--fix-only
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue