Skip to content

Commit

Permalink
Merge pull request #439 from fitzgen/rename-debug-to-dev
Browse files Browse the repository at this point in the history
Rename `--debug` to `--dev` to match `cargo`
  • Loading branch information
fitzgen committed Nov 6, 2018
2 parents 401f114 + 3575a0a commit 9e1e9b0
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/command/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<BuildConfig>,

#[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,
Expand All @@ -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,
Expand Down

0 comments on commit 9e1e9b0

Please sign in to comment.