feat: Add info about optional flags to usage (#416)

This commit is contained in:
Dennis Ploeger
2024-02-27 09:39:21 +01:00
committed by GitHub
parent fa9b636997
commit dc13080e39
4 changed files with 38 additions and 28 deletions
+1 -1
View File
@@ -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) {