Fix help tests with the introduction of -h

Commit c77deac080 in PR #83 added `h` as
the short flag for help, but the help tests were not updated. Update the
tests with the `-h` in the help output.
This commit is contained in:
Cam Hutchison
2020-06-01 21:43:09 +10:00
committed by Alec Thomas
parent c77deac080
commit b11ebc500b
+8 -8
View File
@@ -67,10 +67,10 @@ func TestHelp(t *testing.T) {
A test app.
Flags:
--help Show context-sensitive help.
-h, --help Show context-sensitive help.
--string=STRING A string flag.
--bool A bool flag with very long help that wraps a lot and is
verbose and is really verbose.
--bool A bool flag with very long help that wraps a lot
and is verbose and is really verbose.
--slice=STR,... A slice of strings.
--map=KEY=VALUE;... A map of strings to ints.
--required A required flag.
@@ -107,10 +107,10 @@ Sub-sub-arg.
Detailed help provided through the HelpProvider interface.
Flags:
--help Show context-sensitive help.
-h, --help Show context-sensitive help.
--string=STRING A string flag.
--bool A bool flag with very long help that wraps a lot and is
verbose and is really verbose.
--bool A bool flag with very long help that wraps a lot
and is verbose and is really verbose.
--slice=STR,... A slice of strings.
--map=KEY=VALUE;... A map of strings to ints.
--required A required flag.
@@ -173,7 +173,7 @@ func TestHelpTree(t *testing.T) {
A test app.
Flags:
--help Show context-sensitive help.
-h, --help Show context-sensitive help.
Commands:
one subcommand one
@@ -206,7 +206,7 @@ Run "test-app <command> --help" for more information on a command.
subcommand one
Flags:
--help Show context-sensitive help.
-h, --help Show context-sensitive help.
Commands:
thing subcommand thing