Skip to content

Commit 81b30b6

Browse files
committed
Repair trailers.rs unit test for clap 3.2
Need to count, not append value-less -o options in this test.
1 parent 9de4de4 commit 81b30b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patchedit/trailers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ mod test {
9999
.require_equals(true)
100100
.action(clap::ArgAction::Append),
101101
)
102-
.arg(Arg::new("opt").short('o').action(clap::ArgAction::Append))
102+
.arg(Arg::new("opt").short('o').action(clap::ArgAction::Count))
103103
.get_matches_from(vec![
104104
"myapp", // 0
105105
"-o", // 1

0 commit comments

Comments
 (0)