Added camel_case_functions flag description to readme

This commit is contained in:
Vadim Petrov
2016-06-08 18:54:07 +03:00
parent 6ee8be15d5
commit f9e323601d
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -31,6 +31,8 @@ Usage of .root/bin/easyjson:
use snake_case names instead of CamelCase by default
-stubs
only generate stubs for marshallers/unmarshallers methods
-camel_case_functions
generate functions with CamelCase names instead of under_score by default
```
Using `-all` will generate (un-)marshallers for all structs in the file. By default, structs need to have a line beginning with `easyjson:json` in their docstring, e.g.:
+1 -1
View File
@@ -16,7 +16,7 @@ import (
var buildTags = flag.String("build_tags", "", "build tags to add to generated file")
var snakeCaseFields = flag.Bool("snake_case", false, "use snake_case names instead of CamelCase by default")
var camelCaseFunctions = flag.Bool("camel_case_functions", false, "create functions with CamelCase names instead of under_score by default")
var camelCaseFunctions = flag.Bool("camel_case_functions", false, "generate functions with CamelCase names instead of under_score by default")
var noStdMarshalers = flag.Bool("no_std_marshalers", false, "don't generate MarshalJSON/UnmarshalJSON methods")
var omitEmpty = flag.Bool("omit_empty", false, "omit empty fields by default")
var allStructs = flag.Bool("all", false, "generate un-/marshallers for all structs in a file")