Fixed conflict of "--verbose" and "--quiet" flags (#1686)

Co-authored-by: Raul Cesar <raul@zideco.dev>
This commit is contained in:
Raul Cesar TeixeiraandRaul Cesar authored and GitHub committed 2023-12-04 18:11:02 -06:00
1 parent e69a4a7cd8
commit 8149868ebc
1 file changed
+2 -3
+2 -3
View File
@@ -54,8 +54,7 @@ pub fn build(config: &CrateConfig, quiet: bool) -> Result<BuildResult> {
.arg("build")
.arg("--target")
.arg("wasm32-unknown-unknown")
.arg("--message-format=json")
.arg("--quiet");
.arg("--message-format=json");
let cmd = if config.release {
cmd.arg("--release")
@@ -65,7 +64,7 @@ pub fn build(config: &CrateConfig, quiet: bool) -> Result<BuildResult> {
let cmd = if config.verbose {
cmd.arg("--verbose")
} else {
cmd
cmd.arg("--quiet")
};
let cmd = if config.custom_profile.is_some() {