Skip to content

Commit 746ba3d

Browse files
committed
Stop parsing arguments after --.
1 parent da60329 commit 746ba3d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cli.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ pub fn parse(target_list: &TargetList) -> Result<Args> {
175175
if arg.is_empty() {
176176
continue;
177177
}
178-
if let v @ 1.. = is_verbose(arg.as_str()) {
178+
if matches!(arg.as_str(), "--") {
179+
all.push(arg);
180+
all.extend(args.by_ref());
181+
} else if let v @ 1.. = is_verbose(arg.as_str()) {
179182
verbose += v;
180183
all.push(arg);
181184
} else if matches!(arg.as_str(), "--version" | "-V") {

0 commit comments

Comments
 (0)