From 9ebdc35df067d63297376814f0bba981246fa44f Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 23 Aug 2019 13:13:06 +0200 Subject: ee.part.bom: Creating a proper Bom class to keep BomLines. digikey-create-bom: Adding support for --quantity. --- src/ee/tools/digikey_create_bom.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ee/tools') diff --git a/src/ee/tools/digikey_create_bom.py b/src/ee/tools/digikey_create_bom.py index eaea121..ed32578 100644 --- a/src/ee/tools/digikey_create_bom.py +++ b/src/ee/tools/digikey_create_bom.py @@ -23,7 +23,9 @@ parser.add_argument("--part-db", parser.add_argument("--allow-incomplete", action="store_true") +parser.add_argument("--quantity", default=1, type=float) + args = parser.parse_args() ee.tools.process_default_argparse_group(args) -create_bom(Path(args.bom), [Path(p) for p in args.part_db], Path(args.out), args.allow_incomplete) +create_bom(Path(args.bom), [Path(p) for p in args.part_db], Path(args.out), args.allow_incomplete, args.quantity) -- cgit v1.2.3