Skip to content

Commit

Permalink
Reduce amount of text compared in suggest example app
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballhat committed May 8, 2022
1 parent 9da2c56 commit 34eed95
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions suggestions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
},
Expand All @@ -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)
}

0 comments on commit 34eed95

Please sign in to comment.