With bash, I can complete a command with TAB. Normally, it should also complete the command line switches: e.g. when I typed:
bash
java -
Related: Surprise! the shell suggests command line switches
In the answers to that question there were several links to documentation. You might find what you look for there.