From cb4436bd6ed085bdf1f0d98776f166bf2a6275c9 Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Fri, 10 Feb 2023 13:30:00 -0500 Subject: [PATCH] fix(bindings/cli): Rename `--config` to `--config-json` (#6932) --- bindings/swc_cli/src/commands/compile.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/swc_cli/src/commands/compile.rs b/bindings/swc_cli/src/commands/compile.rs index 4cef8539c222..2f2bbc429c19 100644 --- a/bindings/swc_cli/src/commands/compile.rs +++ b/bindings/swc_cli/src/commands/compile.rs @@ -28,11 +28,11 @@ use crate::util::trace::init_trace; /// Configuration option for transform files. #[derive(Parser)] pub struct CompileOptions { - /// Experimental: provide additional configuration to override the .swcrc. - /// Can be used to provide experimental plugin configuration, + /// Experimental: provide an additional JSON config object to override the + /// .swcrc. Can be used to provide experimental plugin configuration, /// including plugin imports that are explicitly relative, starting with `.` /// or `..` - #[clap(long, value_parser = parse_config)] + #[clap(long = "config-json", value_parser = parse_config)] config: Option, /// Path to a .swcrc file to use