mirror of
https://github.com/certbot/certbot.git
synced 2026-06-06 23:32:06 -04:00
Have main shim take real arg
This commit is contained in:
parent
ee37260df1
commit
e4d1121cc4
1 changed files with 10 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue