#NEWLINE# def configure_parser( sub_parsers ) : #NEWLINE# #INDENT# help = 'Run a worker process (hyperparameter optimization)' #NEWLINE# p = sub_parsers . add_parser ( 'worker' , description = help , help = sub_parsers , formatter_class = ArgumentDefaultsHelpFormatter ) #NEWLINE# p . add_argument ( 'config' , help = 'Path to worker config file (yaml)' ) #NEWLINE# p . add_argument ( '-n' , '--n-iters' , default = 1 , type = int , help = 'Number of trials to run sequentially.' ) #NEWLINE# p . set_defaults ( func = func )