Accept --preferred-challenges "dns-01, http-01"

This commit is contained in:
Peter Eckersley 2016-09-21 15:02:03 -07:00
parent a18a8f051d
commit 741a57c976

View file

@ -1048,7 +1048,7 @@ class _PrefChallAction(argparse.Action):
"""Action class for parsing preferred challenges."""
def __call__(self, parser, namespace, pref_challs, option_string=None):
challs = pref_challs.split(",")
challs = [c.strip() for c in pref_challs.split(",")]
unrecognized = ", ".join(name for name in challs
if name not in challenges.Challenge.TYPES)
if unrecognized: