original_docstring: 
  	Description of main() function, if required collect the command line
  	arguments, and activate further anlysis. 
  	
docstring: Description of main() function, if required collect the command line
  arguments, and activate further anlysis.
docstring_tokens: Description of main () function if required collect the command line arguments and activate further anlysis .
code: def main(argv = None):
  	"""
  	Description of main() function, if required collect the command line
  	arguments, and activate further anlysis. 
  	"""
  	# An optional 'argv' argument, which allows us to call it from the 
  	# interactive Python prompt
  	if argv is None:
  		argv = sys.argv
  	try:
  		if len(argv) < 2:
  			raise Usage(__doc__)
  		try:
  			opts, args = getopt.getopt(argv[1:], "h", ["help"])
  		except getopt.error, msg:
  			raise Usage(msg)
  		# Option processing
  		for option, value in opts:
  			if option in ("-h","--help"):
  				raise Usage(__doc__)
  				sys.exit(0)
  			#do something with options here
  		# Argument processing
  		for argument in args:
  			try:
  				argument.strip()
  				cargument = int(argument)
  			except:
  				print "Can not cast argument to int"
  			try:
  				if cargument >= 8000 & cargument < 9000:
  					print argument
  					twi_instance = webserver.StartServer(cargument)
  					twi_instance.start_server()
  			except Usage, err:
  				print "Unexpected error:", sys.exc_info()[0]
  				print >>sys.stderr, err.msg
  	except Usage, err:
  		print >>sys.stderr, err.msg
  		print >>sys.stderr, "for help use --help"
  		return 2
code_tokens: def main ( argv = None ) : if argv is None : argv = sys . argv try : if len ( argv ) < 2 : raise Usage ( __doc__ ) try : opts , args = getopt . getopt ( argv [ 1 : ] , "h" , [ "help" ] ) except getopt . error , msg : raise Usage ( msg ) for option , value in opts : if option in ( "-h" , "--help" ) : raise Usage ( __doc__ ) sys . exit ( 0 ) for argument in args : try : argument . strip ( ) cargument = int ( argument ) except : print "Can not cast argument to int" try : if cargument >= 8000 & cargument < 9000 : print argument twi_instance = webserver . StartServer ( cargument ) twi_instance . start_server ( ) except Usage , err : print "Unexpected error:" , sys . exc_info ( ) [ 0 ] print >> sys . stderr , err . msg except Usage , err : print >> sys . stderr , err . msg print >> sys . stderr , "for help use --help" return 2
short_docstring: Description of main() function, if required collect the command line
  arguments, and activate further anlysis.
short_docstring_tokens: Description of main () function if required collect the command line arguments and activate further anlysis .
comment: """
  	Description of main() function, if required collect the command line
  	arguments, and activate further anlysis. 
  	"""$SEP$# An optional 'argv' argument, which allows us to call it from the $SEP$# interactive Python prompt$SEP$# Option processing$SEP$#do something with options here$SEP$# Argument processing