Skip to content

Commit

Permalink
fix(fish completions): quote short options too
Browse files Browse the repository at this point in the history
this should make things a bit easier for any programs that want to
make '-?' an alias for '--help'
  • Loading branch information
binarycat committed May 23, 2024
1 parent 4aefa3c commit 3817a3b
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 @@ -116,7 +116,7 @@ fn gen_fish_inner(

if let Some(shorts) = flag.get_short_and_visible_aliases() {
for short in shorts {
template.push_str(format!(" -s {short}").as_str());
template.push_str(format!(" -s '{short}'").as_str());
}
}

Expand Down

0 comments on commit 3817a3b

Please sign in to comment.