#NEWLINE# def die_with_usage( self , msg = None , exit_code = 2 ) : #NEWLINE# #INDENT# '\n        Display a usage message and exit.\n\n        :Parameters:\n            msg : str\n                If not set to ``None`` (the default), this message will be\n                displayed before the usage message\n                \n            exit_code : int\n                The process exit code. Defaults to 2.\n        ' #NEWLINE# if ( msg != None ) : #NEWLINE# #INDENT# ( ( print >> sys . stderr ) , msg ) #NEWLINE# #UNINDENT# self . print_help ( sys . stderr ) #NEWLINE# sys . exit ( exit_code )