Skip to content

Commit ea2cc54

Browse files
yedayakscop
andcommitted
fix(patch, truncate): Try getting help BSD style
Co-authored-by: Ville Skyttä <[email protected]>
1 parent 5b171c6 commit ea2cc54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

completions/patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ _comp_cmd_patch()
5050
[[ $was_split ]] && return
5151

5252
if [[ $cur == -* ]]; then
53-
_comp_compgen_help
53+
_comp_compgen_help || _comp_compgen_usage
5454
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
5555
return
5656
fi

completions/truncate

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ _comp_cmd_truncate()
2020
[[ $was_split ]] && return
2121

2222
if [[ $cur == -* ]]; then
23-
_comp_compgen_help
23+
_comp_compgen_help || _comp_compgen_usage
2424
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
2525
return
2626
fi

0 commit comments

Comments
 (0)