Reduce amount of text compared in suggest example app

main
Dan Buch 2 years ago
parent 9da2c564f8
commit 34eed95a8e
Signed by: meatballhat
GPG Key ID: A12F782281063434

@ -126,8 +126,10 @@ func TestSuggestCommand(t *testing.T) {
func ExampleApp_Suggest() {
app := &App{
Name: "greet",
Suggest: true,
Name: "greet",
Suggest: true,
HideHelp: true,
HideHelpCommand: true,
Flags: []Flag{
&StringFlag{Name: "name", Value: "squirrel", Usage: "a name to say"},
},
@ -147,12 +149,8 @@ func ExampleApp_Suggest() {
// greet - A new cli application
//
// USAGE:
// greet [global options] command [command options] [arguments...]
//
// COMMANDS:
// help, h Shows a list of commands or help for one command
// greet [global options] [arguments...]
//
// GLOBAL OPTIONS:
// --name value a name to say (default: "squirrel")
// --help, -h show help (default: false)
}

Loading…
Cancel
Save