notes
This commit is contained in:
parent
b7ab5b0c48
commit
10c9734c5e
2
app.go
2
app.go
@ -482,7 +482,7 @@ func (a *Author) String() string {
|
||||
}
|
||||
|
||||
// DefaultAppComplete returns an ActionFunc to run a default command if non were passed.
|
||||
// Usage: `app.Action = DefaultCommand("command")`
|
||||
// Usage: `app.Action = cli.DefaultCommand("command")`
|
||||
func DefaultCommand(name string) ActionFunc {
|
||||
return func(ctx *Context) error {
|
||||
return ctx.App.Command(name).Run(ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user