fix: command error with dx build --verbose (#1715)
error msg: cannot set both --verbose and --quiet
This commit is contained in:
1 parent
695bf009d1
commit
0cb13942da
1 file changed
+2
-1
@@ -265,7 +265,6 @@ pub fn build_desktop(config: &CrateConfig, _is_serve: bool) -> Result<BuildResul
|
|||||||
let mut cmd = subprocess::Exec::cmd("cargo")
|
let mut cmd = subprocess::Exec::cmd("cargo")
|
||||||
.cwd(&config.crate_dir)
|
.cwd(&config.crate_dir)
|
||||||
.arg("build")
|
.arg("build")
|
||||||
.arg("--quiet")
|
|
||||||
.arg("--message-format=json");
|
.arg("--message-format=json");
|
||||||
|
|
||||||
if config.release {
|
if config.release {
|
||||||
@@ -273,6 +272,8 @@ pub fn build_desktop(config: &CrateConfig, _is_serve: bool) -> Result<BuildResul
|
|||||||
}
|
}
|
||||||
if config.verbose {
|
if config.verbose {
|
||||||
cmd = cmd.arg("--verbose");
|
cmd = cmd.arg("--verbose");
|
||||||
|
} else {
|
||||||
|
cmd = cmd.arg("--quiet");
|
||||||
}
|
}
|
||||||
|
|
||||||
if config.custom_profile.is_some() {
|
if config.custom_profile.is_some() {
|
||||||
|
|||||||
Reference in new issue
Block a user