mirror of
https://github.com/certbot/certbot.git
synced 2026-06-08 00:02:14 -04:00
renewer: _paths_parser
This commit is contained in:
parent
f5def6b6d6
commit
b9f2823d6b
1 changed files with 11 additions and 2 deletions
|
|
@ -96,12 +96,21 @@ def renew(cert, old_version):
|
|||
# (where fewer than all names were renewed)
|
||||
|
||||
|
||||
def _paths_parser(parser):
|
||||
add = parser.add_argument_group("paths").add_argument
|
||||
add("--config-dir", default=cli.flag_default("config_dir"),
|
||||
help=cli.config_help("config_dir"))
|
||||
add("--work-dir", default=cli.flag_default("work_dir"),
|
||||
help=cli.config_help("work_dir"))
|
||||
return parser
|
||||
|
||||
|
||||
def _create_parser():
|
||||
parser = argparse.ArgumentParser()
|
||||
#parser.add_argument("--cron", action="store_true", help="Run as cronjob.")
|
||||
# pylint: disable=protected-access
|
||||
cli._paths_parser(parser.add_argument_group("paths"))
|
||||
return parser
|
||||
return _paths_parser(parser)
|
||||
|
||||
|
||||
def main(config=None, args=sys.argv[1:]):
|
||||
"""Main function for autorenewer script."""
|
||||
|
|
|
|||
Loading…
Reference in a new issue