From 0d75a0ff5106c527e86cae72fd3350aaed2faf75 Mon Sep 17 00:00:00 2001 From: Dana Date: Thu, 8 Jun 2023 17:28:58 +0300 Subject: [PATCH] add -h for help --- codecov_cli/main.py | 1 + tests/commands/test_invoke_labelanalysis.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/codecov_cli/main.py b/codecov_cli/main.py index a60de96d..2b031d9c 100644 --- a/codecov_cli/main.py +++ b/codecov_cli/main.py @@ -47,6 +47,7 @@ def cli( verbose: bool = False, ): configure_logger(logger, log_level=(logging.DEBUG if verbose else logging.INFO)) + ctx.help_option_names = ["-h", "--help"] ctx.obj["ci_adapter"] = get_ci_adapter(auto_load_params_from) ctx.obj["versioning_system"] = get_versioning_system() ctx.obj["codecov_yaml"] = ( diff --git a/tests/commands/test_invoke_labelanalysis.py b/tests/commands/test_invoke_labelanalysis.py index a088ebf9..ca96e53f 100644 --- a/tests/commands/test_invoke_labelanalysis.py +++ b/tests/commands/test_invoke_labelanalysis.py @@ -64,7 +64,7 @@ def test_labelanalysis_help(self, mocker, fake_ci_provider): " --max-wait-time INTEGER Max time (in seconds) to wait for the label", " analysis result before falling back to running", " all tests. Default is to wait forever.", - " --help Show this message and exit.", + " -h, --help Show this message and exit.", "", ]