From 2f59eaacdcaaab5a052b529036939ffc854c4d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= Date: Tue, 20 Sep 2022 12:03:17 +0200 Subject: [PATCH] Add default values to tpt.py Provide default values for vendor id, product id, revision number, and serial number. --- hw/application_fpga/tools/tpt/tpt.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/application_fpga/tools/tpt/tpt.py b/hw/application_fpga/tools/tpt/tpt.py index 0724953..f5d7328 100755 --- a/hw/application_fpga/tools/tpt/tpt.py +++ b/hw/application_fpga/tools/tpt/tpt.py @@ -105,10 +105,10 @@ def main(): parser = argparse.ArgumentParser() parser.add_argument("-v", "--verbose", help="Verbose operation", action="store_true") parser.add_argument("--ent", help="User supplied entropy", type=str) - parser.add_argument("--vid", help="Vendor id (0 - 65535)", type=int) - parser.add_argument("--pid", help="Product id (0 - 2555", type=int) - parser.add_argument("--rev", help="Revision number (0 - 15)", type=int) - parser.add_argument("--serial", help="Serial number (0 - (2**31 - 1))", type=int) + parser.add_argument("--vid", help="Vendor id (0 - 65535)", type=int, default=0) + parser.add_argument("--pid", help="Product id (0 - 2555", type=int, default=0) + parser.add_argument("--rev", help="Revision number (0 - 15)", type=int, default=0) + parser.add_argument("--serial", help="Serial number (0 - (2**31 - 1))", type=int, default=0) args = parser.parse_args() if args.verbose: