|
|
@ -18,6 +18,8 @@ type App struct {
|
|
|
|
HelpName string
|
|
|
|
HelpName string
|
|
|
|
// Description of the program.
|
|
|
|
// Description of the program.
|
|
|
|
Usage string
|
|
|
|
Usage string
|
|
|
|
|
|
|
|
// Text to override the USAGE section of help
|
|
|
|
|
|
|
|
UsageText string
|
|
|
|
// Description of the program argument format.
|
|
|
|
// Description of the program argument format.
|
|
|
|
ArgsUsage string
|
|
|
|
ArgsUsage string
|
|
|
|
// Version of the program
|
|
|
|
// Version of the program
|
|
|
@ -78,6 +80,7 @@ func NewApp() *App {
|
|
|
|
Name: path.Base(os.Args[0]),
|
|
|
|
Name: path.Base(os.Args[0]),
|
|
|
|
HelpName: path.Base(os.Args[0]),
|
|
|
|
HelpName: path.Base(os.Args[0]),
|
|
|
|
Usage: "A new cli application",
|
|
|
|
Usage: "A new cli application",
|
|
|
|
|
|
|
|
UsageText: "",
|
|
|
|
Version: "0.0.0",
|
|
|
|
Version: "0.0.0",
|
|
|
|
BashComplete: DefaultAppComplete,
|
|
|
|
BashComplete: DefaultAppComplete,
|
|
|
|
Action: helpCommand.Action,
|
|
|
|
Action: helpCommand.Action,
|
|
|
|