From e4d1121cc478760e254a9d66b1062bc0c04572e6 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Fri, 22 Nov 2019 17:42:32 -0800 Subject: [PATCH] Have main shim take real arg --- certbot/certbot/main.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/certbot/certbot/main.py b/certbot/certbot/main.py index 6aff07c4e..4e1525575 100644 --- a/certbot/certbot/main.py +++ b/certbot/certbot/main.py @@ -8,6 +8,13 @@ from certbot._internal import main as internal_main logger = logging.getLogger(__name__) -def main(*args, **kwargs): - """Shim around internal main function""" - return internal_main.main(*args, **kwargs) +def main(cli_args=None): + """Shim around internal main script execution. + + :returns: result of requested command + + :raises errors.Error: OS errors triggered by wrong permissions + :raises errors.Error: error if plugin command is not supported + + """ + return internal_main.main(cli_args)