feat: Add info about optional flags to usage (#416)
This commit is contained in:
+1
-1
@@ -1576,7 +1576,7 @@ func TestPassthroughCmdOnlyArgs(t *testing.T) {
|
||||
} `cmd:"" passthrough:""`
|
||||
}
|
||||
_, err := kong.New(&cli)
|
||||
assert.EqualError(t, err, "<anonymous struct>.Command: passthrough command command [<args> ...] must not have subcommands or flags")
|
||||
assert.EqualError(t, err, "<anonymous struct>.Command: passthrough command command [<args> ...] [flags] must not have subcommands or flags")
|
||||
}
|
||||
|
||||
func TestPassthroughCmdOnlyStringArgs(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user