Skip to content

Commit ca173bc

Browse files
committed
refactor(tree): Lookup --target like other commands
1 parent 92e252b commit ca173bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/cargo/commands/tree.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
136136
.warn("the --all-targets flag has been changed to --target=all")?;
137137
vec!["all".to_string()]
138138
} else {
139-
args._values_of("target")
139+
args.targets()?
140140
};
141141
let target = tree::Target::from_cli(targets);
142142

0 commit comments

Comments
 (0)