Fix deprecation bug

This commit is contained in:
Brad Warren
2015-12-11 16:06:12 -08:00
parent 16f66acba7
commit 9248ba1e96
+3
View File
@@ -1,6 +1,7 @@
"""Utilities for all Let's Encrypt."""
import argparse
import collections
import configargparse
import errno
import logging
import os
@@ -278,9 +279,11 @@ def add_deprecated_argument(add_argument, argument_name, nargs):
sys.stderr.write(
"Use of {0} is deprecated.\n".format(option_string))
configargparse.ACTION_TYPES_THAT_DONT_NEED_A_VALUE.add(ShowWarning)
add_argument(argument_name, action=ShowWarning,
help=argparse.SUPPRESS, nargs=nargs)
def check_domain_sanity(domain):
"""Method which validates domain value and errors out if
the requirements are not met.