From 3fb4cf7009b51dba786ed74d18bb44d4bef31ca4 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Thu, 6 Oct 2022 22:56:01 -0400 Subject: [PATCH] Hide autoformat argument --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 90688110f4..3d37075b85 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,12 +89,13 @@ struct Cli { /// Enable automatic additions of noqa directives to failing lines. #[arg(long)] add_noqa: bool, - /// Enable automatic formatting. - #[arg(long)] - autoformat: bool, /// Regular expression matching the name of dummy variables. #[arg(long)] dummy_variable_rgx: Option, + /// Round-trip auto-formatting. + // TODO(charlie): This should be a sub-command. + #[arg(long, hide = true)] + autoformat: bool, } #[cfg(feature = "update-informer")]