From c3dabc19337c114a932f6514c6bad723e514045f Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Tue, 24 Oct 2023 06:54:28 -0700 Subject: [PATCH] Un-hide the `ruff format` command (#8167) --- crates/ruff_cli/src/args.rs | 2 -- docs/configuration.md | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) 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)