add ArgsUsage to App and Command

This commit is contained in:
Tristan Zajonc
2015-08-03 16:51:11 -07:00
parent 142e6cd241
commit ef65245544
3 changed files with 19 additions and 9 deletions

3
app.go
View File

@@ -15,6 +15,8 @@ type App struct {
Name string
// Description of the program.
Usage string
// Description of the program argument format.
ArgsUsage string
// Version of the program
Version string
// List of commands to execute
@@ -68,6 +70,7 @@ func NewApp() *App {
return &App{
Name: os.Args[0],
Usage: "A new cli application",
ArgsUsage: "[arguments...]",
Version: "0.0.0",
BashComplete: DefaultAppComplete,
Action: helpCommand.Action,