From d8031f16bd85aa4d2f1a04edf1b816a3bd5c2d47 Mon Sep 17 00:00:00 2001 From: Noah Swartz Date: Thu, 25 Aug 2016 17:45:13 -0700 Subject: [PATCH] add deprication --- certbot/plugins/standalone.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/certbot/plugins/standalone.py b/certbot/plugins/standalone.py index 97aca351a..c00f30052 100644 --- a/certbot/plugins/standalone.py +++ b/certbot/plugins/standalone.py @@ -3,6 +3,7 @@ import argparse import collections import logging import socket +import sys import threading import OpenSSL @@ -119,6 +120,8 @@ def supported_challenges_validator(data): It should be passed as `type` argument to `add_argument`. """ + sys.stderr.write("WARNING: The standalone specific supported challenges flag is depricated") + sys.stderr.write("\nPlease use the --preferred-challenges flag instead.\n") challs = data.split(",") # tls-sni-01 was dvsni during private beta @@ -177,7 +180,7 @@ class Authenticator(common.Plugin): @classmethod def add_parser_arguments(cls, add): add("supported-challenges", - help="Supported challenges. Preferred in the order they are listed.", + help=argparse.SUPPRESS, type=supported_challenges_validator, default=",".join(chall.typ for chall in SUPPORTED_CHALLENGES))