From 3575a0a5fcfaa16a21e934c1deb9a661c2672ad6 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Tue, 6 Nov 2018 11:28:45 -0800 Subject: [PATCH] Rename `--debug` to `--dev` to match `cargo` See #437 --- src/command/build.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/command/build.rs b/src/command/build.rs index 35b56071..e49d4dbf 100644 --- a/src/command/build.rs +++ b/src/command/build.rs @@ -89,10 +89,14 @@ pub struct BuildOptions { pub target: String, #[structopt(long = "debug")] - /// Build without --release. + /// Deprecated. Renamed to `--dev`. debug: bool, - // build config from manifest - // build_config: Option, + + #[structopt(long = "dev")] + /// Create a development build. Enable debug info, and disable + /// optimizations. + dev: bool, + #[structopt(long = "out-dir", short = "d", default_value = "pkg")] /// Sets the output directory with a relative path. pub out_dir: String, @@ -113,7 +117,7 @@ impl Build { scope: build_opts.scope, disable_dts: build_opts.disable_dts, target: build_opts.target, - debug: build_opts.debug, + debug: build_opts.dev || build_opts.debug, mode: build_opts.mode, // build_config, out_dir,