import argparse from . import * from .ingest import * from abcli import logging import logging logger = logging.getLogger(__name__) parser = argparse.ArgumentParser(name) parser.add_argument( "task", type=str, help="ingest", ) parser.add_argument( "--output_path", type=str, default="", ) args = parser.parse_args() success = False if args.task == "ingest": success = ingest(args.output_path) else: logger.error(f"-{name}: {args.task}: command not found.") if not success: logger.error(f"-{name}: {args.task}: failed.")