Skip to content

Commit 2beb012

Browse files
committed
fix(ssh-add): option parsing with recent versions
At least 9.3p1 outputs usage style, and we're already using the usage -> help fallback pattern for ssh-keygen.
1 parent 757045a commit 2beb012

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/ssh-add

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ _comp_cmd_ssh_add()
3737
esac
3838

3939
if [[ $cur == -* ]]; then
40-
_comp_compgen_help -- '-?'
40+
_comp_compgen_usage -- '-?' || _comp_compgen_help -- '-?'
4141
return
4242
fi
4343

0 commit comments

Comments
 (0)