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:
Jesse Szwedko
2016-02-06 13:12:10 -08:00
4 changed files with 7 additions and 1 deletions

3
app.go
View File

@@ -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,