diff --git a/crates/ruff_cli/src/args.rs b/crates/ruff_cli/src/args.rs index e5bfe977965c0..c9bd65f80eede 100644 --- a/crates/ruff_cli/src/args.rs +++ b/crates/ruff_cli/src/args.rs @@ -67,8 +67,6 @@ pub enum Command { #[clap(alias = "--generate-shell-completion", hide = true)] GenerateShellCompletion { shell: clap_complete_command::Shell }, /// Run the Ruff formatter on the given files or directories. - #[doc(hidden)] - #[clap(hide = true)] Format(FormatCommand), /// Display Ruff's version Version { diff --git a/docs/configuration.md b/docs/configuration.md index 63872a7f01fd6..8676d079259fa 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -251,6 +251,7 @@ Commands: config List or describe the available configuration options linter List all supported upstream linters clean Clear any caches in the current directory and any subdirectories + format Run the Ruff formatter on the given files or directories version Display Ruff's version help Print this message or the help of the given subcommand(s)