import argparse from pathlib import Path from ee.order import create_order parser = argparse.ArgumentParser() parser.add_argument("--schematic", required=True, metavar="DIR") parser.add_argument("--out", required=True, metavar="PART DB") parser.add_argument("--part-db", nargs="*", required=True, metavar="PART DB") args = parser.parse_args() part_db_dirs = [Path(part_db) for part_db in args.part_db] fail_on_missing_parts = False create_order(Path(args.schematic), Path(args.out), part_db_dirs, fail_on_missing_parts)