From ef47dfc480f0295b96ade9298911f0391ed55018 Mon Sep 17 00:00:00 2001 From: 0xjac Date: Tue, 8 Oct 2024 12:23:52 +0200 Subject: [PATCH] fixup! test: plain map and slice options and generation --- cmd/avrogen/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/avrogen/main.go b/cmd/avrogen/main.go index 67ff697..157fe83 100644 --- a/cmd/avrogen/main.go +++ b/cmd/avrogen/main.go @@ -47,8 +47,8 @@ func realMain(args []string, stdout, stderr io.Writer) int { flgs.BoolVar(&cfg.Encoders, "encoders", false, "Generate encoders for the structs.") flgs.BoolVar(&cfg.FullSchema, "fullschema", false, "Use the full schema in the generated encoders.") flgs.BoolVar(&cfg.StrictTypes, "strict-types", false, "Use strict type sizes (e.g. int32) during generation.") - flgs.BoolVar(&cfg.PlainMap, "plain-map", false, "Use a plain map and not a pointer for nullable unions resulting in a map.") - flgs.BoolVar(&cfg.PlainSlice, "plain-slice", false, "Use a plain slice and not a pointer for nullable unions resulting in a slice.") + flgs.BoolVar(&cfg.PlainMap, "plain-map", false, "Use a plain map instead of a ptr for nullable map unions.") + flgs.BoolVar(&cfg.PlainSlice, "plain-slice", false, "Use a plain slice instead of a ptr for nullable slice unions.") flgs.StringVar(&cfg.Initialisms, "initialisms", "", "Custom initialisms [,...] for struct and field names.") flgs.StringVar(&cfg.TemplateFileName, "template-filename", "", "Override output template with one loaded from file.") flgs.Usage = func() {