--bash-completion
This generates a bash completion script. To use: eval "$(pandoc --bash-completion)"