#NEWLINE# def help( self , usage , description , required = [ ] , optional = [ ] ) : #NEWLINE# #INDENT# required . insert ( 0 , '' ) #NEWLINE# rparams = '\n\t' . join ( required ) #NEWLINE# optional . insert ( 0 , '' ) #NEWLINE# oparams = '\n\t' . join ( optional ) #NEWLINE# m = { #NEWLINE# #INDENT# 'hl' : ( stomp . colors . BOLD + stomp . colors . GREEN ) , #NEWLINE# 'nc' : stomp . colors . NO_COLOR , #NEWLINE# 'usage' : usage , #NEWLINE# 'description' : description , #NEWLINE# 'required' : rparams . rstrip ( ) , #NEWLINE# 'optional' : oparams . rstrip ( ) , #NEWLINE# #UNINDENT# } #NEWLINE# if ( rparams . rstrip ( ) != '' ) : #NEWLINE# #INDENT# rparams = ( '%(hl)sRequired Parameters:%(nc)s%(required)s\n\n' % m ) #NEWLINE# m [ 'required' ] = rparams #NEWLINE# #UNINDENT# if ( oparams . rstrip ( ) != '' ) : #NEWLINE# #INDENT# oparams = ( '%(hl)sOptional Parameters:%(nc)s%(optional)s\n\n' % m ) #NEWLINE# m [ 'optional' ] = oparams #NEWLINE# #UNINDENT# self . __sysout ( ( '%(hl)sUsage:%(nc)s\n\t%(usage)s\n\n%(required)s%(optional)s%(hl)sDescription:%(nc)s\n\t%(description)s\n        ' % m ) )