Skip to content

Commit c055d55

Browse files
committed
feat: rename --typename flag to --type-name
1 parent 36a7503 commit c055d55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ which you can try by running
122122
echo '{"nested":{"bar":true,"foo":"baz"}}' \
123123
'{"nested":{"bar":false,"foo":null}}' \
124124
'{"nested":{"bar":true,"foo":""}}' \
125-
| gojsonstruct --package-name mypackage --typename MyType
125+
| gojsonstruct --package-name mypackage --type-name MyType
126126
```
127127

128128
generates the output

cmd/gojsonstruct/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var (
2626
stringTags = pflag.Bool("string-tags", false, "generate ,string tags")
2727
structTagName = pflag.String("struct-tag-name", "", "struct tag name")
2828
typeComment = pflag.String("type-comment", "", "type comment")
29-
typeName = pflag.String("typename", "T", "type name")
29+
typeName = pflag.String("type-name", "T", "type name")
3030
intType = pflag.String("int-type", "", "integer type")
3131
useJSONNumber = pflag.Bool("use-json-number", false, "use json.Number")
3232
goFormat = pflag.Bool("go-format", true, "format generated Go code")

0 commit comments

Comments
 (0)