parameters: ()
return_statement: return options
docstring: Command line option parser for spherically_project.py
docstring_summary: Command line option parser for spherically_project.py
docstring_tokens: Command line option parser for spherically_project . py
function: def options_parse():
      """
      Command line option parser for spherically_project.py
      """
      parser = optparse.OptionParser(usage=HELPTEXT)
      parser.add_option('--input',  '-i', dest='input_surf', help=h_input)
      parser.add_option('--output', '-o', dest='output_surf', help=h_output)
      (options, args) = parser.parse_args()
  
      if options.input_surf is None or options.output_surf is None:
          sys.exit('ERROR: Please specify input and output surfaces')
  
      return options
function_tokens: def options_parse ( ) : parser = optparse . OptionParser ( usage = HELPTEXT ) parser . add_option ( '--input' , '-i' , dest = 'input_surf' , help = h_input ) parser . add_option ( '--output' , '-o' , dest = 'output_surf' , help = h_output ) ( options , args ) = parser . parse_args ( ) if options . input_surf is None or options . output_surf is None : sys . exit ( 'ERROR: Please specify input and output surfaces' ) return options