Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
parser = ap.ArgumentParser(
description="Generate single & multi-unit schematic symbols for KiCad from a CSV file."
)
parser.add_argument(
"-v", "--version", action="version", version="KiPart " + __version__
)
parser.add_argument(
"input_files",
nargs="+",
type=str,
metavar="file1.[csv|zip] file2.[csv|zip] ...",
help="Files for parts in CSV format or as CSV files in .zip archives.",
)
parser.add_argument(
"-r",
"--reader",
nargs="?",
type=str.lower,
choices=[
"generic",
"xilinxultra",