#NEWLINE# def main( ) : #NEWLINE# #INDENT# parser = argparse . ArgumentParser ( description = 'example Confuse program' ) #NEWLINE# parser . add_argument ( '--library' , '-l' , dest = 'library' , metavar = 'LIBPATH' , help = 'library database file' ) #NEWLINE# parser . add_argument ( '--directory' , '-d' , dest = 'directory' , metavar = 'DIRECTORY' , help = 'destination music directory' ) #NEWLINE# parser . add_argument ( '--verbose' , '-v' , dest = 'verbose' , action = 'store_true' , help = 'print debugging messages' ) #NEWLINE# args = parser . parse_args ( ) #NEWLINE# config . set_args ( args ) #NEWLINE# print ( 'configuration directory is' , config . config_dir ( ) ) #NEWLINE# if config [ 'verbose' ] : #NEWLINE# #INDENT# print ( 'verbose mode' ) #NEWLINE# config [ 'log' ] [ 'level' ] = 2 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# config [ 'log' ] [ 'level' ] = 0 #NEWLINE# #UNINDENT# print ( 'logging level is' , config [ 'log' ] [ 'level' ] . get ( int ) ) #NEWLINE# valid = config . get ( template ) #NEWLINE# print ( 'library is' , valid . library ) #NEWLINE# print ( 'directory is' , valid . paths . directory ) #NEWLINE# print ( 'paths.default is' , valid . paths . default )