Skip to content

Commit 0189d09

Browse files
committed
refactor(chronyc): use _comp_split
1 parent db9a031 commit 0189d09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

completions/chronyc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
_comp_cmd_chronyc__command_args()
44
{
55
local -a args
6-
args=($(compgen -W "$("$1" help 2>/dev/null |
7-
awk '/^'"$prev"'\s[^ []/ { gsub("\\|", " ", $2); print $2 }')"))
6+
_comp_split args "$("$1" help 2>/dev/null |
7+
awk '/^'"$prev"'\s[^ []/ { gsub("\\|", " ", $2); print $2 }')"
88
case $args in
99
\<address\>) _known_hosts_real -- "$cur" ;;
1010
\<*) ;;

0 commit comments

Comments
 (0)