[Bash-completion-devel] [PATCH 1/3] chronyc: Add -6 option
Miroslav Lichvar
mlichvar at redhat.com
Tue Oct 6 15:44:58 UTC 2015
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
More information about the Bash-completion-devel
mailing list