@@ -82,10 +82,7 @@ func Test_Help_RequiredFlagsNoDefault(t *testing.T) {
8282 test - A new cli application
8383
8484USAGE:
85- test [global options] [command [command options]] [arguments...]
86-
87- COMMANDS:
88- help, h Shows a list of commands or help for one command
85+ test [global options] [arguments...]
8986
9087GLOBAL OPTIONS:
9188 --foo value, -f value
@@ -198,7 +195,7 @@ func Test_helpCommand_InHelpOutput(t *testing.T) {
198195 s := output .String ()
199196
200197 require .NotContains (t , s , "\n COMMANDS:\n GLOBAL OPTIONS:\n " , "empty COMMANDS section detected" )
201- require .Contains (t , s , "help, h" , "missing \" help, h\" " )
198+ require .Contains (t , s , "-- help, - h" , "missing \" -- help, -- h\" " )
202199}
203200
204201func TestHelpCommand_FullName (t * testing.T ) {
@@ -361,7 +358,6 @@ func TestShowCommandHelp_AppendHelp(t *testing.T) {
361358 args : []string {"app" , "cmd" , "help" },
362359 verify : func (t * testing.T , outString string ) {
363360 r := require .New (t )
364- r .Contains (outString , "help, h Shows a list of commands or help for one command" )
365361 r .Contains (outString , "--help, -h show help" )
366362 },
367363 },
@@ -1512,11 +1508,6 @@ DESCRIPTION:
15121508 enough to wrap in this test
15131509 case
15141510
1515- COMMANDS:
1516- help, h Shows a list of
1517- commands or help
1518- for one command
1519-
15201511OPTIONS:
15211512 --help, -h show help
15221513` ,
@@ -1655,11 +1646,6 @@ USAGE:
16551646 this is long enough to wrap
16561647 even more
16571648
1658- COMMANDS:
1659- help, h Shows a list of
1660- commands or help
1661- for one command
1662-
16631649OPTIONS:
16641650 --test-f value my test
16651651 usage
@@ -1733,12 +1719,7 @@ func TestCategorizedHelp(t *testing.T) {
17331719 application
17341720
17351721USAGE:
1736- cli.test [global options] [command [command options]] [arguments...]
1737-
1738- COMMANDS:
1739- help, h Shows a list of
1740- commands or help
1741- for one command
1722+ cli.test [global options] [arguments...]
17421723
17431724GLOBAL OPTIONS:
17441725 --help, -h show help
0 commit comments