Skip to content

Commit

Permalink
Merge pull request #178 from codecov/dana/help-option
Browse files Browse the repository at this point in the history
add -h for help
  • Loading branch information
dana-yaish committed Jun 19, 2023
2 parents de3cb3c + 0d75a0f commit 80f03df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions codecov_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = (
Expand Down
2 changes: 1 addition & 1 deletion tests/commands/test_invoke_labelanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
"",
]

Expand Down

0 comments on commit 80f03df

Please sign in to comment.