@@ -82,105 +82,105 @@ enum Cargo {
82
82
) ]
83
83
#[ allow( clippy:: struct_excessive_bools) ]
84
84
struct Opts {
85
- #[ clap (
85
+ #[ arg (
86
86
long,
87
87
help = "Custom regression definition" ,
88
88
value_enum,
89
89
default_value_t = RegressOn :: Error ,
90
90
) ]
91
91
regress : RegressOn ,
92
92
93
- #[ clap ( short, long, help = "Download the alt build instead of normal build" ) ]
93
+ #[ arg ( short, long, help = "Download the alt build instead of normal build" ) ]
94
94
alt : bool ,
95
95
96
- #[ clap (
96
+ #[ arg (
97
97
long,
98
98
help = "Host triple for the compiler" ,
99
99
default_value = env!( "HOST" ) ,
100
100
) ]
101
101
host : String ,
102
102
103
- #[ clap ( long, help = "Cross-compilation target platform" ) ]
103
+ #[ arg ( long, help = "Cross-compilation target platform" ) ]
104
104
target : Option < String > ,
105
105
106
- #[ clap ( long, help = "Preserve the downloaded artifacts" ) ]
106
+ #[ arg ( long, help = "Preserve the downloaded artifacts" ) ]
107
107
preserve : bool ,
108
108
109
- #[ clap ( long, help = "Preserve the target directory used for builds" ) ]
109
+ #[ arg ( long, help = "Preserve the target directory used for builds" ) ]
110
110
preserve_target : bool ,
111
111
112
- #[ clap ( long, help = "Download rust-src [default: no download]" ) ]
112
+ #[ arg ( long, help = "Download rust-src [default: no download]" ) ]
113
113
with_src : bool ,
114
114
115
- #[ clap ( long, help = "Download rustc-dev [default: no download]" ) ]
115
+ #[ arg ( long, help = "Download rustc-dev [default: no download]" ) ]
116
116
with_dev : bool ,
117
117
118
- #[ clap ( short, long = "component" , help = "additional components to install" ) ]
118
+ #[ arg ( short, long = "component" , help = "additional components to install" ) ]
119
119
components : Vec < String > ,
120
120
121
- #[ clap (
121
+ #[ arg (
122
122
long,
123
123
help = "Root directory for tests" ,
124
124
default_value = "." ,
125
125
value_parser = validate_dir
126
126
) ]
127
127
test_dir : PathBuf ,
128
128
129
- #[ clap ( long, help = "Manually evaluate for regression with prompts" ) ]
129
+ #[ arg ( long, help = "Manually evaluate for regression with prompts" ) ]
130
130
prompt : bool ,
131
131
132
- #[ clap (
132
+ #[ arg (
133
133
long,
134
134
short,
135
135
help = "Assume failure after specified number of seconds (for bisecting hangs)"
136
136
) ]
137
137
timeout : Option < usize > ,
138
138
139
- #[ clap ( short, long = "verbose" , action = ArgAction :: Count ) ]
139
+ #[ arg ( short, long = "verbose" , action = ArgAction :: Count ) ]
140
140
verbosity : u8 ,
141
141
142
- #[ clap (
142
+ #[ arg (
143
143
help = "Arguments to pass to cargo or the file specified by --script during tests" ,
144
144
num_args = 1 ..,
145
145
last = true ,
146
146
value_parser
147
147
) ]
148
148
command_args : Vec < OsString > ,
149
149
150
- #[ clap (
150
+ #[ arg (
151
151
long,
152
152
help = "Left bound for search (*without* regression). You can use \
153
153
a date (YYYY-MM-DD), git tag name (e.g. 1.58.0) or git commit SHA."
154
154
) ]
155
155
start : Option < Bound > ,
156
156
157
- #[ clap (
157
+ #[ arg (
158
158
long,
159
159
help = "Right bound for search (*with* regression). You can use \
160
160
a date (YYYY-MM-DD), git tag name (e.g. 1.58.0) or git commit SHA."
161
161
) ]
162
162
end : Option < Bound > ,
163
163
164
- #[ clap ( long, help = "Bisect via commit artifacts" ) ]
164
+ #[ arg ( long, help = "Bisect via commit artifacts" ) ]
165
165
by_commit : bool ,
166
166
167
- #[ clap ( long, value_enum, help = "How to access Rust git repository" , default_value_t = Access :: Checkout ) ]
167
+ #[ arg ( long, value_enum, help = "How to access Rust git repository" , default_value_t = Access :: Checkout ) ]
168
168
access : Access ,
169
169
170
- #[ clap ( long, help = "Install the given artifact" ) ]
170
+ #[ arg ( long, help = "Install the given artifact" ) ]
171
171
install : Option < Bound > ,
172
172
173
- #[ clap ( long, help = "Force installation over existing artifacts" ) ]
173
+ #[ arg ( long, help = "Force installation over existing artifacts" ) ]
174
174
force_install : bool ,
175
175
176
- #[ clap (
176
+ #[ arg (
177
177
long,
178
178
help = "Script replacement for `cargo build` command" ,
179
179
value_parser
180
180
) ]
181
181
script : Option < PathBuf > ,
182
182
183
- #[ clap ( long, help = "Do not install cargo [default: install cargo]" ) ]
183
+ #[ arg ( long, help = "Do not install cargo [default: install cargo]" ) ]
184
184
without_cargo : bool ,
185
185
}
186
186
0 commit comments