mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 08:12:15 -04:00
Set DEFAULTS during parse_args
This commit is contained in:
parent
c60c28514c
commit
657c4e7259
1 changed files with 5 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
|||
"""Certbot command line argument & config processing."""
|
||||
from __future__ import print_function
|
||||
import argparse
|
||||
import copy
|
||||
import glob
|
||||
import logging
|
||||
import logging.handlers
|
||||
|
|
@ -340,6 +341,10 @@ class HelpfulArgumentParser(object):
|
|||
if self.detect_defaults:
|
||||
return parsed_args
|
||||
|
||||
global DEFAULTS # pylint: disable=global-statement
|
||||
DEFAULTS = dict((key, copy.deepcopy(self.parser.get_default(key)))
|
||||
for key in vars(parsed_args))
|
||||
|
||||
# Do any post-parsing homework here
|
||||
|
||||
if self.verb == "renew" and not parsed_args.dialog_mode:
|
||||
|
|
|
|||
Loading…
Reference in a new issue