Compact help should display full command.

This commit is contained in:
Alec Thomas
2018-06-21 00:04:35 +10:00
parent 39fd1507da
commit d9c0dd25b1
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -23,7 +23,8 @@ var cli struct {
}
func main() {
cmd := kong.Parse(&cli, kong.Description("A shell-like example app."), kong.HelpOptions(kong.CompactHelp()))
cmd := kong.Parse(&cli, kong.Description("A shell-like example app."),
kong.HelpOptions(kong.CompactHelp()))
switch cmd {
case "rm <paths>":
fmt.Println(cli.Rm.Paths, cli.Rm.Force, cli.Rm.Recursive)