diff --git a/cmd/dungeondraft-packager-cli/dungeondraft-packager-cli.go b/cmd/dungeondraft-packager-cli/dungeondraft-packager-cli.go index 1b0aaf7..4c8f787 100644 --- a/cmd/dungeondraft-packager-cli/dungeondraft-packager-cli.go +++ b/cmd/dungeondraft-packager-cli/dungeondraft-packager-cli.go @@ -26,8 +26,9 @@ func main() { kong.UsageOnError(), kong.ConfigureHelp( kong.HelpOptions{ - Compact: true, + Compact: false, Summary: true, + Tree: false, }), kong.Bind(ctx), ) diff --git a/cmd/dungeondraft-packager/dungeondraft-packager.go b/cmd/dungeondraft-packager/dungeondraft-packager.go index e37975d..ed183a0 100644 --- a/cmd/dungeondraft-packager/dungeondraft-packager.go +++ b/cmd/dungeondraft-packager/dungeondraft-packager.go @@ -20,13 +20,21 @@ var CLI struct { func main() { kong.Parse(&CLI, + kong.Configuration(kong.JSON, "./dd-gopackager.json", "~/.config/dd-gopackager.json"), kong.Name("dungeondraft-packager"), - kong.Description("Pack, Unpack, Edit, and Prepare resources for .dungeondraft_pack files"), + kong.Description( + "Pack, Unpack, Edit, and Prepare resources for .dungeondraft_pack files\n\n"+ + "log file and level can also be configured from a file.\n"+ + "the first of the folowing will be loaded:\n"+ + "\t./dd-gopackager.json\n"+ + "\t~/.config/dd-gopackager.json", + ), kong.UsageOnError(), kong.ConfigureHelp( kong.HelpOptions{ Compact: true, Summary: true, + Tree: true, }), // vars ) diff --git a/internal/cmd/list.go b/internal/cmd/list.go index 6c7a03c..5366393 100644 --- a/internal/cmd/list.go +++ b/internal/cmd/list.go @@ -16,7 +16,7 @@ import ( type ListCmd struct { Files ListFilesCmd `cmd:"" help:"lists files in the pack"` - Tags ListTagsCmd `cmd:"" help:"lists all tags that match the provided resource patterns, with no patterns lists all tags"` + Tags ListTagsCmd `cmd:"" help:"lists all tags that match the provided resource patterns. with no patterns lists all tags"` } type ListFilesCmd struct {