Approve v2 addition of App.DefaultCommand

related to #1388
This commit is contained in:
Dan Buch 2022-06-24 07:55:49 -04:00
parent d29120f08b
commit d7504f847b
Signed by: meatballhat
GPG Key ID: A12F782281063434
2 changed files with 6 additions and 0 deletions

View File

@ -269,6 +269,9 @@ type App struct {
Version string
// Description of the program
Description string
// DefaultCommand is the (optional) name of a command
// to run if no command names are passed as CLI arguments.
DefaultCommand string
// List of commands to execute
Commands []*Command
// List of flags to parse

View File

@ -269,6 +269,9 @@ type App struct {
Version string
// Description of the program
Description string
// DefaultCommand is the (optional) name of a command
// to run if no command names are passed as CLI arguments.
DefaultCommand string
// List of commands to execute
Commands []*Command
// List of flags to parse