def cmd_options(cmd):
    os.environ["_ARGCOMPLETE_IFS"] = "\n"
    os.environ["_ARGCOMPLETE_WORDBREAKS"] = os.environ.get(
        "COMP_WORDBREAKS", "")
    os.environ["_ARGCOMPLETE"] = "2"

    try:
        mod = importlib.import_module(
            ".{0}".format(cmd), package="mesos.cli.cmds")
    except __HOLE__:
        return

    if not hasattr(mod, 'parser'):
        return

    importlib.import_module("argcomplete").autocomplete(
        mod.parser,
        output_stream=sys.stdout,
        exit_method=EXIT
    )
dataset/ETHPy150Open mesosphere/mesos-cli/mesos/cli/cmds/completion.py/cmd_options