Skip to content

Commit 159faa0

Browse files
committed
Fixed test cases
1 parent 27816c3 commit 159faa0

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎examples_test.go‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,16 @@ func ExampleCommand_Run_commandHelp() {
182182
// greet describeit - use it to see a description
183183
//
184184
// USAGE:
185-
// greet describeit [arguments...]
185+
// greet describeit [options] [arguments...]
186186
//
187187
// DESCRIPTION:
188188
// This is how we describe describeit the function
189189
//
190190
// OPTIONS:
191191
// --help, -h show help
192+
//
193+
// GLOBAL OPTIONS:
194+
// --name string a name to say (default: "pat")
192195
}
193196

194197
func ExampleCommand_Run_noAction() {

‎help_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ func TestShowCommandHelp_HelpPrinterCustom(t *testing.T) {
571571
fmt.Fprint(w, "yo")
572572
},
573573
arguments: []string{"my-app", "help", "my-command"},
574-
wantTemplate: SubcommandHelpTemplate,
574+
wantTemplate: CommandHelpTemplate,
575575
wantOutput: "yo",
576576
},
577577
{

0 commit comments

Comments
 (0)