We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb87d8 commit 63d5308Copy full SHA for 63d5308
src/lib.rs
@@ -299,17 +299,19 @@ pub fn run(tool: Tool, matches: ArgMatches) -> Result<i32> {
299
bail!("Unable to find workspace members");
300
}
301
302
- let target_artifact = if tool.needs_build() {
303
- cargo_build(&matches, &metadata)?
304
- } else {
305
- None
306
- };
307
-
308
let mut tool_args = vec![];
309
if let Some(args) = matches.values_of("args") {
310
tool_args.extend(args);
311
312
+ let tool_help = tool_args.first() == Some(&"--help");
+
+ let target_artifact = if tool.needs_build() && !tool_help {
+ cargo_build(&matches, &metadata)?
+ } else {
+ None
313
+ };
314
315
let mut lltool = Command::new(format!("rust-{}", tool.name()));
316
317
if tool == Tool::Objdump {
0 commit comments