Skip to content

Commit

Permalink
fixup! test: plain map and slice options and generation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjac committed Oct 8, 2024
1 parent 4165421 commit ef47dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/avrogen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 <VAL>[,...] for struct and field names.")
flgs.StringVar(&cfg.TemplateFileName, "template-filename", "", "Override output template with one loaded from file.")
flgs.Usage = func() {
Expand Down

0 comments on commit ef47dfc

Please sign in to comment.