1
0

document all args, describe all parsers, add db shortcut

This commit is contained in:
thurask
2018-01-30 12:31:05 -05:00
parent f0bdc0af75
commit f7ddf22d2d
8 changed files with 54 additions and 24 deletions
+5 -1
View File
@@ -22,7 +22,11 @@ fc.mode = fc.MODE.FULL
#fc.cltp = fc.CLTP.MOBILE
fc.cltp = fc.CLTP.DESKTOP
dp = tcllib.DefaultParser(__file__)
dpdesc = """
Finds new PRD numbers for a range of variants. Scan range can be set by
floor and ceiling switches.
"""
dp = tcllib.DefaultParser(__file__, dpdesc)
dp.add_argument("floor", nargs="?", help="Model number to start with", type=int, default=63116)
dp.add_argument("ceiling", nargs="?", help="Model number to end with", type=int, default=99999)
args = dp.parse_args(sys.argv[1:])