Skip to content

Commit 53ab3d9

Browse files
authored
Merge pull request #1442 from yedayak/help-usage-macos
fix(patch, truncate): Get help correctly on macos
2 parents e78ab97 + 78379bc commit 53ab3d9

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)