#NEWLINE# def _add_help( self ) : #NEWLINE# #INDENT# "Determines if the user provided his own --help or -h arguments\n        and adds a default implementation if it doesn't find any\n        " #NEWLINE# help = Arg ( 'help' ) #NEWLINE# help . action = self . _display_help #NEWLINE# help . help = 'Display help information' #NEWLINE# has_short = False #NEWLINE# for arg in set ( self . _args_map . values ( ) ) : #NEWLINE# #INDENT# if ( arg . long == '--help' ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( arg . short == '-h' ) : #NEWLINE# #INDENT# has_short = True #NEWLINE# #UNINDENT# #UNINDENT# if ( not has_short ) : #NEWLINE# #INDENT# help . short = '-h' #NEWLINE# #UNINDENT# help . long = '--help' #NEWLINE# self . add_arg ( help )