Merge pull request #208 from FunkyAss/bash-completion

Add bash completion support
bash-completion: add --query longopt

Signed-off-by: Davide "FunkyAss" Del Zompo <davide.delzompo@gmail.com>