#NEWLINE# def merge_argparse_args_into_config( self , args ) : #NEWLINE# #INDENT# 'Merges the args returned by argparse.ArgumentParser into the config.\n\n        Keyword arguments:\n          args -- The args object returned by argsparse.parse_args().\n\n        Returns:\n          dict -- Dictionary object of the entire config.\n\n        ' #NEWLINE# for option in self . spec . options : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# value = getattr ( args , option ) #NEWLINE# if ( value is not None ) : #NEWLINE# #INDENT# self . config [ option ] = value #NEWLINE# #UNINDENT# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# self . logger . debug ( ( 'Option %s not in CLI arguments -- not updated' % option ) ) #NEWLINE# #UNINDENT# #UNINDENT# return self . config