diff --git a/crates/ruff_cli/src/args.rs b/crates/ruff_cli/src/args.rs index 1c693ca368ad2..0ddd2f7867545 100644 --- a/crates/ruff_cli/src/args.rs +++ b/crates/ruff_cli/src/args.rs @@ -410,7 +410,7 @@ pub struct FormatCommand { #[clap(long, overrides_with("force_exclude"), hide = true)] no_force_exclude: bool, /// Set the line-length. - #[arg(long, help_heading = "Rule configuration", hide = true)] + #[arg(long, help_heading = "Format configuration")] pub line_length: Option, /// Ignore all configuration files. #[arg(long, conflicts_with = "config", help_heading = "Miscellaneous")] diff --git a/docs/configuration.md b/docs/configuration.md index de8f4432aec9a..6fe954c38f1cf 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -402,6 +402,9 @@ File selection: --exclude List of paths, used to omit files and/or directories from analysis --force-exclude Enforce exclusions, even for paths passed to Ruff directly on the command-line. Use `--no-force-exclude` to disable +Format configuration: + --line-length Set the line-length + Log levels: -v, --verbose Enable verbose logging -q, --quiet Print diagnostics, but nothing else