parameters: ()
return_statement: return filename[0]
docstring: Parses commandline options.
docstring_summary: Parses commandline options.
docstring_tokens: Parses commandline options .
function: def optParse():
  	"""Parses commandline options."""
  	parser = OptionParser(prog=__applicationName__, version="%prog " + __version__)
  
  	parser.set_usage("%prog [options] filename")
  	parser.add_option("--autobrief",
  		action="store_true", dest="autobrief",
  		help="use the docstring summary line as \\brief description"
  	)
  	parser.add_option("--debug",
  		action="store_true", dest="debug",
  		help="enable debug output on stderr"
  	)
  
  	## parse options
  	global options
  	(options, filename) = parser.parse_args()
  
  	if not filename:
  		print("No filename given.", file=sys.stderr)
  		sys.exit(-1)
  
  	return filename[0]
function_tokens: def optParse ( ) : parser = OptionParser ( prog = __applicationName__ , version = "%prog " + __version__ ) parser . set_usage ( "%prog [options] filename" ) parser . add_option ( "--autobrief" , action = "store_true" , dest = "autobrief" , help = "use the docstring summary line as \\brief description" ) parser . add_option ( "--debug" , action = "store_true" , dest = "debug" , help = "enable debug output on stderr" ) ## parse options global options ( options , filename ) = parser . parse_args ( ) if not filename : print ( "No filename given." , file = sys . stderr ) sys . exit ( - 1 ) return filename [ 0 ]