Skip to content

Commit cb4436b

Browse files
authoredFeb 10, 2023
fix(bindings/cli): Rename --config to --config-json (#6932)
1 parent 0559f2c commit cb4436b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎bindings/swc_cli/src/commands/compile.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ use crate::util::trace::init_trace;
2828
/// Configuration option for transform files.
2929
#[derive(Parser)]
3030
pub struct CompileOptions {
31-
/// Experimental: provide additional configuration to override the .swcrc.
32-
/// Can be used to provide experimental plugin configuration,
31+
/// Experimental: provide an additional JSON config object to override the
32+
/// .swcrc. Can be used to provide experimental plugin configuration,
3333
/// including plugin imports that are explicitly relative, starting with `.`
3434
/// or `..`
35-
#[clap(long, value_parser = parse_config)]
35+
#[clap(long = "config-json", value_parser = parse_config)]
3636
config: Option<Config>,
3737

3838
/// Path to a .swcrc file to use

0 commit comments

Comments
 (0)
Please sign in to comment.