Skip to content

Commit

Permalink
Merge pull request #5314 from epage/required
Browse files Browse the repository at this point in the history
fix(parser): Don't duplicate requireds when usage disabled
  • Loading branch information
epage authored Jan 16, 2024
2 parents e648e08 + 0a635b9 commit 2f18909
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clap_builder/src/parser/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,8 @@ impl<'cmd> Validator<'cmd> {
"".to_owned()
}
})
.collect::<FlatSet<_>>()
.into_iter()
.collect::<Vec<_>>()
}
};
Expand Down

0 comments on commit 2f18909

Please sign in to comment.