Merge pull request #289 from KSubedi/master
Added command to have a custom text on the USAGE section of help
This commit is contained in:
3
app.go
3
app.go
@@ -18,6 +18,8 @@ type App struct {
|
||||
HelpName string
|
||||
// Description of the program.
|
||||
Usage string
|
||||
// Text to override the USAGE section of help
|
||||
UsageText string
|
||||
// Description of the program argument format.
|
||||
ArgsUsage string
|
||||
// Version of the program
|
||||
@@ -78,6 +80,7 @@ func NewApp() *App {
|
||||
Name: path.Base(os.Args[0]),
|
||||
HelpName: path.Base(os.Args[0]),
|
||||
Usage: "A new cli application",
|
||||
UsageText: "",
|
||||
Version: "0.0.0",
|
||||
BashComplete: DefaultAppComplete,
|
||||
Action: helpCommand.Action,
|
||||
|
Reference in New Issue
Block a user