mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
make target an argument
This commit is contained in:
parent
0bffd6001c
commit
439ebcddce
1 changed files with 8 additions and 0 deletions
|
@ -432,6 +432,14 @@ pub fn build_app() -> Command {
|
|||
.action(ArgAction::SetTrue)
|
||||
.required(false)
|
||||
)
|
||||
.arg(
|
||||
Arg::new(FLAG_TARGET)
|
||||
.long(FLAG_TARGET)
|
||||
.help("Choose a different target")
|
||||
.default_value(Into::<&'static str>::into(Target::default()))
|
||||
.value_parser(build_target_values_parser.clone())
|
||||
.required(false),
|
||||
)
|
||||
)
|
||||
.arg(flag_optimize)
|
||||
.arg(flag_max_threads)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue