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 -
If you want to create your own custom completions you can look at this post: https://stackoverflow.com/a/21476506/2649637