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

    Args:
      options (argparse.Namespace): parser options.
      output_module (OutputModule): output module to configure.

    Raises:
      BadConfigObject: when the output module object is of the wrong type.
      BadConfigOption: when the output filename was not provided.
    """
    if not isinstance(output_module, sqlite_4n6time.SQLite4n6TimeOutputModule):
      raise errors.BadConfigObject(
          'Output module is not an instance of SQLite4n6TimeOutputModule')

    shared_4n6time_output.Shared4n6TimeOutputArgumentsHelper.ParseOptions(
        options, output_module)

    filename = getattr(options, 'write', None)
    if not filename:
      raise errors.BadConfigOption(
          'Output filename was not provided use "-w filename" to specify.')

    output_module.SetFilename(filename)
def ParseOptions ( cls , options , output_module ) : if not isinstance ( output_module , sqlite_4n6time . SQLite4n6TimeOutputModule ) : raise errors . BadConfigObject ( 'Output module is not an instance of SQLite4n6TimeOutputModule' ) shared_4n6time_output . Shared4n6TimeOutputArgumentsHelper . ParseOptions ( options , output_module ) filename = getattr ( options , 'write' , None ) if not filename : raise errors . BadConfigOption ( 'Output filename was not provided use "-w filename" to specify.' ) output_module . SetFilename ( filename )
Parses and validates options.

    Args:
      options (argparse.Namespace): parser options.
      output_module (OutputModule): output module to configure.

    Raises:
      BadConfigObject: when the output module object is of the wrong type.
      BadConfigOption: when the output filename was not provided.