Implemented tab completion for sub-commands.