diff --git a/README.md b/README.md index 9a13645180..231f866294 100644 --- a/README.md +++ b/README.md @@ -456,14 +456,6 @@ File selection: --respect-gitignore Respect file exclusions via `.gitignore` and other standard ignore files --force-exclude Enforce exclusions, even for paths passed to Ruff directly on the command-line -Rule configuration: - --target-version - The minimum Python version that should be supported - --line-length - Set the line-length for length-associated rules and automatic formatting - --dummy-variable-rgx - Regular expression matching the name of dummy variables - Miscellaneous: -n, --no-cache Disable cache reads diff --git a/crates/ruff_cli/src/args.rs b/crates/ruff_cli/src/args.rs index c934a30476..14d482bd9f 100644 --- a/crates/ruff_cli/src/args.rs +++ b/crates/ruff_cli/src/args.rs @@ -187,14 +187,14 @@ pub struct CheckArgs { #[clap(long, overrides_with("force_exclude"), hide = true)] no_force_exclude: bool, /// The minimum Python version that should be supported. - #[arg(long, help_heading = "Rule configuration")] + #[arg(long, help_heading = "Rule configuration", hide = true)] pub target_version: Option, /// Set the line-length for length-associated rules and automatic /// formatting. - #[arg(long, help_heading = "Rule configuration")] + #[arg(long, help_heading = "Rule configuration", hide = true)] pub line_length: Option, /// Regular expression matching the name of dummy variables. - #[arg(long, help_heading = "Rule configuration")] + #[arg(long, help_heading = "Rule configuration", hide = true)] pub dummy_variable_rgx: Option, /// Disable cache reads. #[arg(short, long, help_heading = "Miscellaneous")]