'Prints all of the commands and options to stdout so that the
nova.bash_completion script doesn\'t have to hard code them.'

def do_bash_completion(self, _args):

    commands = set()
    options = set()
    for (sc_str, sc) in self.subcommands.items():
        commands.add(sc_str)
        for option in sc._optionals._option_string_actions.keys():
            options.add(option)
    commands.remove('bash-completion')
    commands.remove('bash_completion')
    print('    '.join((commands | options)))
