make target an argument

This commit is contained in:
Anton-4 2024-08-10 14:31:29 +02:00
parent 0bffd6001c
commit 439ebcddce
No known key found for this signature in database
GPG key ID: 0971D718C0A9B937

View file

@ -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)