diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-08-23 13:13:06 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-08-23 13:14:53 +0200 |
commit | 9ebdc35df067d63297376814f0bba981246fa44f (patch) | |
tree | 225dc4461ea800c0c5dfc8b486915799b3e88f7a /src/ee/tools | |
parent | 6b7c6e96c727d8f1885b0653cdcbc21730eaf3cb (diff) | |
download | ee-python-9ebdc35df067d63297376814f0bba981246fa44f.tar.gz ee-python-9ebdc35df067d63297376814f0bba981246fa44f.tar.bz2 ee-python-9ebdc35df067d63297376814f0bba981246fa44f.tar.xz ee-python-9ebdc35df067d63297376814f0bba981246fa44f.zip |
ee.part.bom: Creating a proper Bom class to keep BomLines.
digikey-create-bom: Adding support for --quantity.
Diffstat (limited to 'src/ee/tools')
-rw-r--r-- | src/ee/tools/digikey_create_bom.py | 4 |
1 files changed, 3 insertions, 1 deletions
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) |