aboutsummaryrefslogtreecommitdiff
path: root/src/ee/tools
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-08-23 13:13:06 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-08-23 13:14:53 +0200
commit9ebdc35df067d63297376814f0bba981246fa44f (patch)
tree225dc4461ea800c0c5dfc8b486915799b3e88f7a /src/ee/tools
parent6b7c6e96c727d8f1885b0653cdcbc21730eaf3cb (diff)
downloadee-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.py4
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)