Skip to content

Commit 436cda2

Browse files
tests: sync expected error message for click 8.4.0
`click` `8.4.0` changed the error hint message and prefers long option name over the short one. https://github.com/pallets/click/releases/tag/8.4.0 > The error hint now uses Command.get_help_option_names to pick non-shadowed help option names, so Try '... -h' no longer points to a subcommand option that shadows -h. All surviving names are shown (-h/--help). #2790 #3208 Fixes: #132 Signed-off-by: Stanislav Levin <slev@altlinux.org>
1 parent f609f05 commit 436cda2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Usage: demo [OPTIONS] COMMAND [ARGS]...
2-
Try 'demo -h' for help.
2+
Try 'demo --help' for help.
33

44
Error: No such command 'list'.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Usage: demo [OPTIONS] COMMAND [ARGS]...
2-
Try 'demo -h' for help.
2+
Try 'demo --help' for help.
33

44
Error: No such command 'searh'.
55
The most similar command is 'search'.

0 commit comments

Comments
 (0)