Skip to content

Commit dc35d8c

Browse files
committed
refactor: update _parse_{help,usage} in code comments
1 parent 2dbcfe5 commit dc35d8c

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

completions/jps

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ _comp_cmd_jps()
1212
esac
1313

1414
if [[ $cur == -* ]]; then
15-
# Not using _parse_usage because output has [-help] which does not
16-
# mean -h, -e, -l, -p...
15+
# Not using _comp_compgen_usage because output has [-help] which does
16+
# not mean -h, -e, -l, -p...
1717
_comp_compgen -- -W "-q -m -l -v -V -J -help"
1818
[[ ${COMPREPLY-} == -J* ]] && compopt -o nospace
1919
else

completions/ps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ _comp_cmd_ps()
5858
esac
5959

6060
if [[ $cur == -* ]]; then
61-
# sed: strip single char dashless ", x," that trip _parse_help
61+
# sed: strip single char dashless ", x," that trip _comp_compgen_help
6262
local opts=$({
6363
"$1" --help
6464
"$1" --help all

completions/puppet

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ _comp_cmd_puppet()
148148
;;
149149
*)
150150
_comp_cmd_puppet__subcmd_opts "$1" "$subcommand"
151-
# _parse_usage doesn't grok [-D|--daemonize|--no-daemonize]
151+
# _comp_compgen_usage doesn't grok
152+
# [-D|--daemonize|--no-daemonize]
152153
_comp_compgen -a -- -W '--no-daemonize'
153154
return
154155
;;
@@ -301,7 +302,8 @@ _comp_cmd_puppet()
301302
;;
302303
*)
303304
_comp_cmd_puppet__subcmd_opts "$1" "$subcommand"
304-
# _parse_usage doesn't grok [-D|--daemonize|--no-daemonize]
305+
# _comp_compgen_usage doesn't grok
306+
# [-D|--daemonize|--no-daemonize]
305307
_comp_compgen -a -- -W '--no-daemonize'
306308
return
307309
;;

completions/tar

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
# -------------------------
2020
#
2121
# For GNU tar, everything is parsed from `tar --help` output so not so much
22-
# per-distribution work should be needed. The _parse_help does not seem to be
23-
# good enough so parsed here directly.
22+
# per-distribution work should be needed. The _comp_compgen_help does not seem
23+
# to be good enough so parsed here directly.
2424
#
2525
#
2626
# FIXME: --starting-file (-K) (should be matched for extraction only)

0 commit comments

Comments
 (0)