Commit 5b2352c
committed
Don't crash when running
Previously, the cargo wrapper tried to access CLI flags that were only
defined when `needs_build` was true. Omit the access for commands that
don't need those flags.
Before:
```
thread 'main' (13996246) panicked at src/lib.rs:283:37:
Mismatch between definition and access of `features`. Unknown argument
or group id. Make sure you are using the argument id and not the short
or long flags
```
After:
```
Proxy for the `llvm-profdata` tool shipped with the Rust toolchain.
Usage: cargo-profdata [OPTIONS] [-- <args>...]
...
```cargo profdata --help
1 parent fa6d682 commit 5b2352c
1 file changed
+16
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
173 | 177 | | |
174 | 178 | | |
175 | 179 | | |
| |||
223 | 227 | | |
224 | 228 | | |
225 | 229 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | 230 | | |
230 | 231 | | |
231 | 232 | | |
| |||
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
293 | 296 | | |
294 | 297 | | |
295 | 298 | | |
| |||
0 commit comments