remove broken stdin
This commit is contained in:
parent
768b5d81b4
commit
c836bdee49
7
main.py
7
main.py
@ -6,9 +6,10 @@ import os
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
def main():
|
||||||
# parse arguments
|
# parse arguments
|
||||||
parser = argparse.ArgumentParser(description="parse netlist and pack all references to current working directory")
|
parser = argparse.ArgumentParser(description="parse netlist and pack all references to current working directory")
|
||||||
parser.add_argument("files", nargs="*", type=argparse.FileType("r"), default=sys.stdin)
|
parser.add_argument("files", nargs="*", type=argparse.FileType("r"))
|
||||||
parser.add_argument("-d", action="store_const", const=True, default=False, help="Dryrun")
|
parser.add_argument("-d", action="store_const", const=True, default=False, help="Dryrun")
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
@ -80,5 +81,5 @@ for file in files:
|
|||||||
shutil.copyfile(src, dst)
|
shutil.copyfile(src, dst)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
Loading…
Reference in New Issue
Block a user