Reduce amount of text compared in suggest example app
This commit is contained in:
parent
9da2c564f8
commit
34eed95a8e
@ -128,6 +128,8 @@ func ExampleApp_Suggest() {
|
|||||||
app := &App{
|
app := &App{
|
||||||
Name: "greet",
|
Name: "greet",
|
||||||
Suggest: true,
|
Suggest: true,
|
||||||
|
HideHelp: true,
|
||||||
|
HideHelpCommand: true,
|
||||||
Flags: []Flag{
|
Flags: []Flag{
|
||||||
&StringFlag{Name: "name", Value: "squirrel", Usage: "a name to say"},
|
&StringFlag{Name: "name", Value: "squirrel", Usage: "a name to say"},
|
||||||
},
|
},
|
||||||
@ -147,12 +149,8 @@ func ExampleApp_Suggest() {
|
|||||||
// greet - A new cli application
|
// greet - A new cli application
|
||||||
//
|
//
|
||||||
// USAGE:
|
// USAGE:
|
||||||
// greet [global options] command [command options] [arguments...]
|
// greet [global options] [arguments...]
|
||||||
//
|
|
||||||
// COMMANDS:
|
|
||||||
// help, h Shows a list of commands or help for one command
|
|
||||||
//
|
//
|
||||||
// GLOBAL OPTIONS:
|
// GLOBAL OPTIONS:
|
||||||
// --name value a name to say (default: "squirrel")
|
// --name value a name to say (default: "squirrel")
|
||||||
// --help, -h show help (default: false)
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user