@@ -8,9 +8,8 @@ use std::{
8
8
} ;
9
9
10
10
use anyhow:: Result ;
11
+ use clap:: { ArgGroup , Parser } ;
11
12
use serde:: de:: DeserializeOwned ;
12
- use structopt:: clap:: ArgGroup ;
13
- use structopt:: StructOpt ;
14
13
use tokio:: process:: Command ;
15
14
16
15
use crate :: { command:: CommandExt , fleetdata:: FleetData } ;
@@ -121,22 +120,25 @@ impl Config {
121
120
}
122
121
}
123
122
124
- #[ derive( StructOpt , Clone ) ]
125
- #[ structopt ( group = ArgGroup :: with_name ( "target_hosts" ) ) ]
123
+ #[ derive( Parser , Clone ) ]
124
+ #[ clap ( group = ArgGroup :: new ( "target_hosts" ) ) ]
126
125
pub struct FleetOpts {
127
126
/// All hosts except those would be skipped
128
- #[ structopt ( long, number_of_values = 1 , group = "target_hosts" ) ]
127
+ #[ clap ( long, number_of_values = 1 , group = "target_hosts" ) ]
129
128
only : Vec < String > ,
130
129
131
130
/// Hosts to skip
132
- #[ structopt ( long, number_of_values = 1 , group = "target_hosts" ) ]
131
+ #[ clap ( long, number_of_values = 1 , group = "target_hosts" ) ]
133
132
skip : Vec < String > ,
134
133
135
134
/// Host, which should be threaten as current machine
136
- #[ structopt ( long) ]
135
+ #[ clap ( long) ]
137
136
pub localhost : Option < String > ,
138
137
139
- #[ structopt( long, default_value = "x86_64-linux" ) ]
138
+ // TODO: unhardcode x86_64-linux
139
+ /// Override detected system for host, to perform builds via
140
+ /// binfmt-declared qemu instead of trying to crosscompile
141
+ #[ clap( long, default_value = "x86_64-linux" ) ]
140
142
pub local_system : String ,
141
143
}
142
144
0 commit comments