fix(bindings/cli): Rename --config to --config-json (#6932)

This commit is contained in:
Jonathan Rudenberg 2023-02-10 13:30:00 -05:00 committed by GitHub
parent 0559f2c2b4
commit cb4436bd6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<Config>,
/// Path to a .swcrc file to use