parameters: ()
docstring: Generates IDL file.
docstring_summary: Generates IDL file.
docstring_tokens: Generates IDL file .
function: def _Main():
    """Generates IDL file."""
    # use getopt to parse the option and argument list; this may raise, but
    # don't catch it
    argument_list = ["help", "idl_template_file=", "idl_output_file="]
    (opts, unused_args) = getopt.getopt(sys.argv[1:], "", argument_list)
    if not opts or ("--help", "") in opts:
      _Usage()
      sys.exit()
  
    idl_template_filename = ""
    idl_output_filename = ""
  
    for (o, v) in opts:
      if o == "--idl_template_file":
        idl_template_filename = v
      if o == "--idl_output_file":
        idl_output_filename = v
  
    # make sure we have work to do
    if not idl_template_filename:
      raise StandardError("no idl_template_filename specified")
    if not idl_output_filename:
      raise StandardError("no idl_output_filename specified")
  
    _GenerateIDLFile(idl_template_filename, idl_output_filename)
    sys.exit()
function_tokens: def _Main ( ) : # use getopt to parse the option and argument list; this may raise, but # don't catch it argument_list = [ "help" , "idl_template_file=" , "idl_output_file=" ] ( opts , unused_args ) = getopt . getopt ( sys . argv [ 1 : ] , "" , argument_list ) if not opts or ( "--help" , "" ) in opts : _Usage ( ) sys . exit ( ) idl_template_filename = "" idl_output_filename = "" for ( o , v ) in opts : if o == "--idl_template_file" : idl_template_filename = v if o == "--idl_output_file" : idl_output_filename = v # make sure we have work to do if not idl_template_filename : raise StandardError ( "no idl_template_filename specified" ) if not idl_output_filename : raise StandardError ( "no idl_output_filename specified" ) _GenerateIDLFile ( idl_template_filename , idl_output_filename ) sys . exit ( )