diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2016-12-28 16:37:39 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2017-01-05 09:24:41 +0100 |
commit | e92fb46ec42991dca60d22d8b1ab321b7c4ff146 (patch) | |
tree | 8eff3bf9472d4964098846fdbc8eb8d3438700bf /trygvis/eda/cli/eda_rdf.py | |
parent | 673dcbcab144a274bbc26a926d4a735275519b92 (diff) | |
download | eda-rdf-e92fb46ec42991dca60d22d8b1ab321b7c4ff146.tar.gz eda-rdf-e92fb46ec42991dca60d22d8b1ab321b7c4ff146.tar.bz2 eda-rdf-e92fb46ec42991dca60d22d8b1ab321b7c4ff146.tar.xz eda-rdf-e92fb46ec42991dca60d22d8b1ab321b7c4ff146.zip |
o Adding --force flag to digikey-download-for-schematic.
o Unbreaking download_product().
Diffstat (limited to 'trygvis/eda/cli/eda_rdf.py')
-rw-r--r-- | trygvis/eda/cli/eda_rdf.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/trygvis/eda/cli/eda_rdf.py b/trygvis/eda/cli/eda_rdf.py index 7b4ed2c..ee4b0dd 100644 --- a/trygvis/eda/cli/eda_rdf.py +++ b/trygvis/eda/cli/eda_rdf.py @@ -9,6 +9,8 @@ class CliCommand(object): self.description = description +# TODO: move all of the command classes to the file they delegate to. + class AddToDb(CliCommand): def __init__(self): super().__init__("add-to-db", "Import RDF triplet file to the database") @@ -55,6 +57,7 @@ class DigikeyDownloadForSchematic(CliCommand): def run(self, argv): p = argparse.ArgumentParser(prog=self.key, description=self.description) p.add_argument("--schematic", required=True) + p.add_argument("-f", "--force", default=False, action='store_true') args = p.parse_args(argv) from trygvis.eda.cli import digikey_download_for_schematic |