#NEWLINE# def parser( self ) : #NEWLINE# #INDENT# kwargs = { #NEWLINE# #INDENT# 'usage' : self . usage , #NEWLINE# 'prog' : self . prog , #NEWLINE# #UNINDENT# } #NEWLINE# parser = argparse . ArgumentParser ( ** kwargs ) #NEWLINE# parser . add_argument ( '-v' , '--version' , action = 'version' , default = argparse . SUPPRESS , version = ( ( '%(prog)s (version ' + __version__ ) + ')\n' ) , help = "show program's version number and exit" ) #NEWLINE# parser . add_argument ( 'args' , nargs = '*' , help = argparse . SUPPRESS ) #NEWLINE# keys = sorted ( self . settings , key = k . settings . __getitem__ ) #NEWLINE# for k in keys : #NEWLINE# #INDENT# self . settings [ k ] . add_option ( parser ) #NEWLINE# #UNINDENT# return parser