()
return opts, args
parse_options() -> opts, args

	Parse any command-line options given returning both
	the parsed options and arguments.

	https://docs.python.org/2/library/optparse.html
parse_options() -> opts, args
parse_options () - > opts args
def parse_options():
	"""
	parse_options() -> opts, args

	Parse any command-line options given returning both
	the parsed options and arguments.

	https://docs.python.org/2/library/optparse.html

	"""

	parser = optparse.OptionParser(usage=USAGE, version=ontospy.VERSION)

	parser.add_option("-o", "--outputfile",
			action="store", type="string", default="", dest="outputfile",
			help="The name of the output csv file.")

	parser.add_option("-v", "--verbose",
			action="store_true", default=False, dest="verbose",
			help="Verbose mode: prints results on screen too.")

	opts, args = parser.parse_args()

	return opts, args
def parse_options ( ) : parser = optparse . OptionParser ( usage = USAGE , version = ontospy . VERSION ) parser . add_option ( "-o" , "--outputfile" , action = "store" , type = "string" , default = "" , dest = "outputfile" , help = "The name of the output csv file." ) parser . add_option ( "-v" , "--verbose" , action = "store_true" , default = False , dest = "verbose" , help = "Verbose mode: prints results on screen too." ) opts , args = parser . parse_args ( ) return opts , args