def main(args=None): # build configuration dict from command line options (options, args) = parser.parse_args(args=args) config = ConfigurationManager(defaults, options, 'master') # setup custom logging logging.setup(config.getLogfile()) # and then, load and run the application from neo.master.app import Application app = Application(config) app.run()
def main(args=None): # TODO: Forbid using "reset" along with any unneeded argument. # "reset" is too dangerous to let user a chance of accidentally # letting it slip through in a long option list. # We should drop support configation files to make such check useful. (options, args) = parser.parse_args(args=args) config = ConfigurationManager(defaults, options, 'storage') # setup custom logging logging.setup(config.getLogfile()) # and then, load and run the application from neo.storage.app import Application app = Application(config) if not config.getReset(): app.run()