Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Commit 6b2be25

Browse files
committed
Propagate additional cargo build options
1 parent 1d09584 commit 6b2be25

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

cargo-apk/src/main.rs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ fn cli_build() -> App<'static, 'static> {
119119
.arg_manifest_path()
120120
.arg_message_format()
121121
.arg_build_plan()
122+
.arg_verbose()
123+
.arg_quiet()
124+
.arg_color()
125+
.arg_frozen()
126+
.arg_locked()
122127
.after_help(
123128
"\
124129
All packages in the workspace are built if the `--all` flag is supplied. The
@@ -429,6 +434,29 @@ pub trait AppExt: Sized {
429434
self._arg(opt("build-plan", "Output the build plan in JSON"))
430435
}
431436

437+
fn arg_verbose(self) -> Self {
438+
self._arg(opt("verbose", "Use verbose output")
439+
.short("v"))
440+
}
441+
442+
fn arg_quiet(self) -> Self {
443+
self._arg(opt("quiet", "No output printed to stdout")
444+
.short("q"))
445+
}
446+
447+
fn arg_color(self) -> Self {
448+
self._arg(opt("color", "Coloring: auto, always, never")
449+
.value_name("WHEN"))
450+
}
451+
452+
fn arg_frozen(self) -> Self {
453+
self._arg(opt("frozen", "Require Cargo.lock and cache are up to date"))
454+
}
455+
456+
fn arg_locked(self) -> Self {
457+
self._arg(opt("locked", "Require Cargo.lock is up to date"))
458+
}
459+
432460
fn arg_new_opts(self) -> Self {
433461
self._arg(
434462
opt(

0 commit comments

Comments
 (0)