#NEWLINE# def main( ) : #NEWLINE# #INDENT# p = argparse . ArgumentParser ( description = 'SortingDesk report generation tool' ) #NEWLINE# p . add_argument ( '-c' , '--config' , required = True , help = 'Dossier stack YAML config file' ) #NEWLINE# p . add_argument ( 'folder_name' , nargs = '?' , default = None , help = 'Folder name' ) #NEWLINE# p . add_argument ( '-u' , '--user' , default = None , help = 'user name (default=ALL)' ) #NEWLINE# args = p . parse_args ( ) #NEWLINE# config = yakonfig . set_default_config ( [ kvlayer ] , filename = args . config ) #NEWLINE# factory = Factory ( config ) #NEWLINE# store = factory . create ( Store ) #NEWLINE# label_store = factory . create ( LabelStore ) #NEWLINE# folders = Folders ( store , label_store ) #NEWLINE# list_projects ( args , args . folder_name , args . user )