diff options
Diffstat (limited to 'completion.py')
-rw-r--r-- | completion.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/completion.py b/completion.py index 5a39aba..d5336f4 100644 --- a/completion.py +++ b/completion.py @@ -122,7 +122,9 @@ while true; do {5} esac fnc=_{0}_${{cur/-/_}} - declare -f ${{fnc}} >/dev/null && COMPREPLY+=( $(${{fnc}} $2) ) + declare -f ${{fnc}} >/dev/null \ + && COMPREPLY+=( $(${{fnc}} $2) ) \ + || continue [[ "$2" =~ ^-.* ]] \ && COMPREPLY+=( $(compgen -W "${{opts_common}} ${{opts_nonmain}}" -- $2) ) return |