From c553392c9f4f529fbc5acf2b5d87a94baed1a247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathieu=20L=C3=A9onardon?= Date: Wed, 15 Jun 2016 11:50:35 +0200 Subject: [PATCH] Modified completion to be compliant with bash tools like redirection. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mathieu LĂ©onardon --- aff3ct_completion.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/aff3ct_completion.sh b/aff3ct_completion.sh index e905382b7..3c5552860 100644 --- a/aff3ct_completion.sh +++ b/aff3ct_completion.sh @@ -216,13 +216,13 @@ _aff3ct() { COMPREPLY=( $(compgen -W "${params}" -- ${cur}) ) ;; + --version | -v | --help | --h | --disable-sys-enc | --disable-freq | --disable-display | --enable-debug | \ + --enable-dec-thr | --enable-leg-term) + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + ;; + *) - if [[ ${COMP_LINE} == *" "@(-X|--package-names)* ]] ; then - _pkgname -I ${cur} - COMPREPLY=(${COMPREPLY[@]} $(compgen -W "${opts}")) - else - COMPREPLY=($(compgen -W "${opts} -- ${cur}")) - fi + _minimal ;; esac }