Skip to content

Commit

Permalink
Update verbose help message
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitznik committed Mar 8, 2024
1 parent 015e4c6 commit c347786
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions src/pipx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -758,11 +758,20 @@ def get_command_parser() -> Tuple[argparse.ArgumentParser, Dict[str, argparse.Ar
default=0,
help=(
"Give less output. May be used multiple times corresponding to the"
" ERROR, and CRITICAL logging levels. Any count > 2 is ignored."
" ERROR and CRITICAL logging levels. Any count > 2 is ignored."
),
)

shared_parser.add_argument("--verbose", "-v", action="count", default=0, help=("Give more output."))
shared_parser.add_argument(
"--verbose",
"-v",
action="count",
default=0,
help=(
"Give more output. May be used multiple times corresponding to the"
" INFO, DEBUG and NOTSET logging levels. Any count > 3 is ignored."
),
)

parser = argparse.ArgumentParser(
prog=prog_name(),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ def test_prog_name(monkeypatch, argv, executable, expected):

def test_limit_verbosity():
assert not run_pipx_cli(["list", "-qqq"])
assert not run_pipx_cli(["list", "-vvv"])
assert not run_pipx_cli(["list", "-vvvv"])

0 comments on commit c347786

Please sign in to comment.