parameters: (self, name, help, actual, default, term_width)
return_statement: return out
docstring: Return the string representing the option specified.
docstring_summary: Return the string representing the option specified.
docstring_tokens: Return the string representing the option specified .
function: def format_option(self, name, help, actual, default, term_width):
  		"""
  		Return the string representing the option specified.
  		"""
  		def val_to_str(val):
  			if val == None or val == '':
  				return "(void)"
  			return str(val)
  
  		max_name_len = 20
  		sep_len = 2
  
  		w = textwrap.TextWrapper()
  		w.width = term_width - 1
  		if w.width < 60: w.width = 60
  
  		out = ""
  
  		# format the help
  		out += w.fill(help) + "\n"
  
  		# format the name
  		name_len = len(name)
  		out += Logs.colors.CYAN + name + Logs.colors.NORMAL
  
  		# set the indentation used when the value wraps to the next line
  		w.subsequent_indent = " ".rjust(max_name_len + sep_len)
  		w.width -= (max_name_len + sep_len)
  
  		# the name string is too long, switch to the next line
  		if name_len > max_name_len:
  			out += "\n" + w.subsequent_indent
  
  		# fill the remaining of the line with spaces
  		else:
  			out += " ".rjust(max_name_len + sep_len - name_len)
  
  		# format the actual value, if there is one
  		if actual != None:
  			out += Logs.colors.BOLD + w.fill(val_to_str(actual)) + Logs.colors.NORMAL + "\n" + w.subsequent_indent
  
  		# format the default value
  		default_fmt = val_to_str(default)
  		if actual != None:
  			default_fmt = "default: " + default_fmt
  		out += Logs.colors.NORMAL + w.fill(default_fmt) + Logs.colors.NORMAL
  
  		return out
function_tokens: def format_option ( self , name , help , actual , default , term_width ) : def val_to_str ( val ) : if val == None or val == '' : return "(void)" return str ( val ) max_name_len = 20 sep_len = 2 w = textwrap . TextWrapper ( ) w . width = term_width - 1 if w . width < 60 : w . width = 60 out = "" # format the help out += w . fill ( help ) + "\n" # format the name name_len = len ( name ) out += Logs . colors . CYAN + name + Logs . colors . NORMAL # set the indentation used when the value wraps to the next line w . subsequent_indent = " " . rjust ( max_name_len + sep_len ) w . width -= ( max_name_len + sep_len ) # the name string is too long, switch to the next line if name_len > max_name_len : out += "\n" + w . subsequent_indent # fill the remaining of the line with spaces else : out += " " . rjust ( max_name_len + sep_len - name_len ) # format the actual value, if there is one if actual != None : out += Logs . colors . BOLD + w . fill ( val_to_str ( actual ) ) + Logs . colors . NORMAL + "\n" + w . subsequent_indent # format the default value default_fmt = val_to_str ( default ) if actual != None : default_fmt = "default: " + default_fmt out += Logs . colors . NORMAL + w . fill ( default_fmt ) + Logs . colors . NORMAL return out