The chronyc -6 option needs to be listed explicitly as _parse_usage()
doesn't pick it from the usage text "[-4|-6]".
---
 completions/chronyc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/completions/chronyc b/completions/chronyc
index 3544c75..c3cfdaa 100644
--- a/completions/chronyc
+++ b/completions/chronyc
@@ -16,7 +16,7 @@ _chronyc()
     esac
 
     if [[ $cur == -* ]]; then
-        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" ) -6' -- "$cur" ) )
         return
     fi
 
-- 
2.1.0


_______________________________________________
Bash-completion-devel mailing list
Bash-completion-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-devel

Reply via email to