Skip to content

Commit

Permalink
fix: missing -l for negated completions
Browse files Browse the repository at this point in the history
  • Loading branch information
bomgar committed Nov 27, 2023
1 parent cd5440f commit 64494dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/core/flags/complete/fish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ pub(crate) fn generate() -> String {
.replace("!DOC!", &doc),
);
if let Some(negated) = flag.name_negated() {
let long_negated = format!("-l '{}'", negated.replace("'", "\\'"));
out.push_str(
&template
.replace("!SHORT!", "")
.replace("!LONG!", &negated)
.replace("!LONG!", &long_negated)
.replace("!DOC!", &doc),
);
}
Expand Down

0 comments on commit 64494dc

Please sign in to comment.