Debugging / work in progress

This commit is contained in:
Peter Eckersley
2016-02-07 19:04:43 -08:00
parent 5693ec5c93
commit c9df10a87e
+5 -2
View File
@@ -1204,9 +1204,12 @@ class HelpfulArgumentParser(object):
# during parsing; that's fine as long as their defaults evalute to
# boolean false.
if not any(exception in args for exception in ["--webroot-map", "-d", "-w", "-v"]):
if kwargs.get("type", None) == int:
arg_type = kwargs.get("type", None)
if arg_type == int:
kwargs["default"] = 0
elif "--csr" in args:
elif arg_type == read_file or "-c" in args:
#if "-c" in args:
# raise TypeError("Skipping %r " % args)
kwargs["default"] = ""
kwargs["type"] = str
else: