Skip to content

Commit 9e1e9b0

Browse files
authored
Merge pull request #439 from fitzgen/rename-debug-to-dev
Rename `--debug` to `--dev` to match `cargo`
2 parents 401f114 + 3575a0a commit 9e1e9b0

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/command/build.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,14 @@ pub struct BuildOptions {
8989
pub target: String,
9090

9191
#[structopt(long = "debug")]
92-
/// Build without --release.
92+
/// Deprecated. Renamed to `--dev`.
9393
debug: bool,
94-
// build config from manifest
95-
// build_config: Option<BuildConfig>,
94+
95+
#[structopt(long = "dev")]
96+
/// Create a development build. Enable debug info, and disable
97+
/// optimizations.
98+
dev: bool,
99+
96100
#[structopt(long = "out-dir", short = "d", default_value = "pkg")]
97101
/// Sets the output directory with a relative path.
98102
pub out_dir: String,
@@ -113,7 +117,7 @@ impl Build {
113117
scope: build_opts.scope,
114118
disable_dts: build_opts.disable_dts,
115119
target: build_opts.target,
116-
debug: build_opts.debug,
120+
debug: build_opts.dev || build_opts.debug,
117121
mode: build_opts.mode,
118122
// build_config,
119123
out_dir,

0 commit comments

Comments
 (0)