def ParseOptions(cls, options, configuration_object):
    """Parses and validates options.

    Args:
      options (argparse.Namespace): parser options.
      configuration_object (CLITool): object to be configured by the argument
          helper.

    Raises:
      BadConfigObject: when the configuration object is of the wrong type.
    """
    if not isinstance(configuration_object, tools.CLITool):
      raise errors.BadConfigObject(
          'Configuration object is not an instance of CLITool')

    use_zeromq = getattr(options, 'use_zeromq', True)

    setattr(configuration_object, '_use_zeromq', use_zeromq)
def ParseOptions ( cls , options , configuration_object ) : if not isinstance ( configuration_object , tools . CLITool ) : raise errors . BadConfigObject ( 'Configuration object is not an instance of CLITool' ) use_zeromq = getattr ( options , 'use_zeromq' , True ) setattr ( configuration_object , '_use_zeromq' , use_zeromq )
Parses and validates options.

    Args:
      options (argparse.Namespace): parser options.
      configuration_object (CLITool): object to be configured by the argument
          helper.

    Raises:
      BadConfigObject: when the configuration object is of the wrong type.