code: def validate_options(self):
          
          for option in self._option_list:
              # validate options
              if option.required and option.key not in self._results:
                  raise RuntimeError('Option %s is required.' % option.name)
docs: Validate options