1
0

Start modularising tcllib.

This commit is contained in:
2018-02-02 03:33:53 +01:00
parent f9398e6b5f
commit 4456f76032
11 changed files with 39 additions and 26 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ import json
import requests
import sys
import tcllib
import tcllib.argparser
from requests.exceptions import RequestException
tcllib.make_escapes_work()
@@ -21,7 +22,7 @@ dpdesc = """
Checks for the latest OTA updates for all PRD numbers or only for the PRD specified
as prd. Initial software version can be specified with forcever.
"""
dp = tcllib.DefaultParser(__file__, dpdesc)
dp = tcllib.argparser.DefaultParser(__file__, dpdesc)
dp.add_argument("forcever", help="Initial software version to check for OTA updates, e.g. AAM481", nargs="?", default=None)
dp.add_argument("-p", "--prd", help="CU Reference # to filter scan results", dest="tocheck", nargs="?", default=None, metavar="PRD")
args = dp.parse_args(sys.argv[1:])