Skip to content

Commit

Permalink
fix: ArgAction is non-exhaustive
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Jul 9, 2024
1 parent 46131ca commit c1b8a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clap_complete/src/shells/fish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ impl Generator for Fish {
// NOTE: Use exhaustive match to update this when new actions are added
// (e.g. HelpShort / HelpLong were only added recently).
match a.get_action() {
ArgAction::Set | ArgAction::Append | ArgAction::SetTrue | ArgAction::SetFalse | ArgAction::Count => true,
ArgAction::Help | ArgAction::HelpShort | ArgAction::HelpLong | ArgAction::Version => false,
_ => true,
}
});

Expand Down

0 comments on commit c1b8a73

Please sign in to comment.