@classmethod
    def create_from_cmd_line(cls):
        options = cls.get_cmd_line_options()

        if not 'SUPERVISOR_SERVER_URL' in os.environ:
            sys.stderr.write('Must run as a supervisor event listener\n')
            sys.exit(1)

        return cls(**options.__dict__)
dataset/ETHPy150Open XiaoMi/minos/supervisor/superlance/process_state_email_monitor.py/ProcessStateEmailMonitor.create_from_cmd_line/original