Skip to content

Commit d7504f8

Browse files
committed
Approve v2 addition of App.DefaultCommand
related to #1388
1 parent d29120f commit d7504f8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

godoc-current.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ type App struct {
269269
Version string
270270
// Description of the program
271271
Description string
272+
// DefaultCommand is the (optional) name of a command
273+
// to run if no command names are passed as CLI arguments.
274+
DefaultCommand string
272275
// List of commands to execute
273276
Commands []*Command
274277
// List of flags to parse

testdata/godoc-v2.x.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ type App struct {
269269
Version string
270270
// Description of the program
271271
Description string
272+
// DefaultCommand is the (optional) name of a command
273+
// to run if no command names are passed as CLI arguments.
274+
DefaultCommand string
272275
// List of commands to execute
273276
Commands []*Command
274277
// List of flags to parse

0 commit comments

Comments
 (0)