def validate_input():
    mesos_version = MesosConfig.mesos_version()
    operating_system = MesosConfig.operating_system()
    if mesos_version == "":
        Utils.exit_with_cmd_error( __file__, "Mesos version not given. Run with show-releases to see what the available versions are.")
    if operating_system == "":
        Utils.exit_with_cmd_error( __file__, "Operating system not given. Available values: {}".format( str(MesosConfig.supported_operating_systems()) ))
    if not mesos_version in list_releases():
        Utils.exit_with_cmd_error( __file__,
                                   "Mesos version ({}) is not supported. Run with show-releases to see what the available versions are.".format(
                                    mesos_version ))
    if not operating_system in MesosConfig.supported_operating_systems():
        Utils.exit_with_cmd_error( __file__,
                                   "Operating system ({}) is not supported. Available values: {}".format(
                                    operating_system,
                                    str(MesosConfig.supported_operating_systems()) ))
    if operating_system == "osx" and Utils.platform() != "darwin":
        Utils.exit_with_cmd_error( __file__, "Operating system (osx) is only supported when running this program on OS X." )
dataset/ETHPy150Open radekg/mesos-toolbox/mesos-toolbox.py/validate_input/original