diff options
Diffstat (limited to 'Completion/User/_pbm')
-rw-r--r-- | Completion/User/_pbm | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Completion/User/_pbm b/Completion/User/_pbm index c697ebaa6..9eecd0390 100644 --- a/Completion/User/_pbm +++ b/Completion/User/_pbm @@ -254,8 +254,7 @@ pgmtoppm) fi _x_color && ret=0 - _description expl option - compadd "$expl[@]" - -map && ret=0 + _wanted options expl option && compadd "$expl[@]" - -map && ret=0 return ret elif [[ CURRENT -eq 3 && "$words[2]" = -map ]]; then @@ -591,12 +590,12 @@ ppmquant) fi if [[ CURRENT -eq 2 ]]; then - _description expl option - if [[ -n "$opt" ]]; then - compadd "$expl[@]" - -map -fs -floyd && ret=0 - else - compadd "$expl[@]" - -map && ret=0 - fi + _wanted options expl option && + if [[ -n "$opt" ]]; then + compadd "$expl[@]" - -map -fs -floyd && ret=0 + else + compadd "$expl[@]" - -map && ret=0 + fi _message 'number of colors' return ret |