Return update results as unified UpdateInfo objects. Prepared more

features in OptionParser.
This commit is contained in:
2019-09-16 02:59:30 +02:00
parent 64be0eb894
commit 319197c88b
2 changed files with 99 additions and 3 deletions
+2
View File
@@ -20,6 +20,8 @@ optp.add_option("-W", "--webupdater", action="store_false", dest="express", defa
optp.add_option("--id", dest="unit_id", help="Specify custom Unit ID")
optp.add_option("--code", action="append", dest="unlock_codes", metavar="UNLOCK_CODE", default=[], help="Specify map unlock codes")
optp.add_option("--devicexml", dest="devicexml", metavar="FILE", help="Use specified GarminDevice.xml (also implies -E)")
optp.add_option("--json", action="store_true", dest="json", default=False, help="Output JSON")
optp.add_option("--list-devices", action="store_true", dest="list_devices", default=False, help="Show a list of SKUs and product names")
optp.usage = """
%prog [options] SKU1 [SKU2..SKUn]