add log-level (#9637)

This commit is contained in:
Engel Nyst 2025-07-09 17:19:10 +02:00 committed by GitHub
parent e77957aa92
commit be0596abd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -759,6 +759,12 @@ def get_parser() -> argparse.ArgumentParser:
type=bool,
default=False,
)
parser.add_argument(
'--log-level',
help='Set the log level',
type=str,
default=None,
)
return parser

View File

@ -138,13 +138,14 @@ def test_help_message(capsys):
'--no-auto-continue',
'--selected-repo SELECTED_REPO',
'--override-cli-mode OVERRIDE_CLI_MODE',
'--log-level LOG_LEVEL',
]
for element in expected_elements:
assert element in help_output, f"Expected '{element}' to be in the help message"
option_count = help_output.count(' -')
assert option_count == 20, f'Expected 20 options, found {option_count}'
assert option_count == 21, f'Expected 21 options, found {option_count}'
def test_selected_repo_format():