@@ -41,7 +41,7 @@ exports.main = function main(args, callback) {
41
41
"force-message" : "strict-message"
42
42
} ,
43
43
string : [ "target" , "out" , "path" , "wrap" , "dependency" , "root" , "lint" , "filter" ] ,
44
- boolean : [ "create" , "encode" , "decode" , "verify" , "convert" , "delimited" , "typeurl" , "beautify" , "comments" , "service" , "es6" , "sparse" , "keep-case" , "alt-comment" , "force-long" , "force-number" , "force-enum-string" , "force-message" , "force-optional " , "null-defaults" ] ,
44
+ boolean : [ "create" , "encode" , "decode" , "verify" , "convert" , "delimited" , "typeurl" , "beautify" , "comments" , "service" , "es6" , "sparse" , "keep-case" , "alt-comment" , "force-long" , "force-number" , "force-enum-string" , "force-message" , "null-semantics " , "null-defaults" ] ,
45
45
default : {
46
46
target : "json" ,
47
47
create : true ,
@@ -62,7 +62,7 @@ exports.main = function main(args, callback) {
62
62
"force-number" : false ,
63
63
"force-enum-string" : false ,
64
64
"force-message" : false ,
65
- "force-optional " : false ,
65
+ "null-semantics " : false ,
66
66
"null-defaults" : false
67
67
}
68
68
} ) ;
@@ -147,9 +147,9 @@ exports.main = function main(args, callback) {
147
147
" --force-long Enforces the use of 'Long' for s-/u-/int64 and s-/fixed64 fields." ,
148
148
" --force-number Enforces the use of 'number' for s-/u-/int64 and s-/fixed64 fields." ,
149
149
" --force-message Enforces the use of message instances instead of plain objects." ,
150
- " --force-optional Enforces nullable types for fields marked as optional (proto2 and proto3)" ,
151
150
"" ,
152
- " --null-defaults Default value for optional fields is null instead of zero value (deprecated, use --force-optional instead)" ,
151
+ " --null-semantics Make nullable fields match protobuf semantics (including the optional keyword)" ,
152
+ " --null-defaults Default value for optional fields is null instead of zero value (no effect if --null-semantics is specified)" ,
153
153
"" ,
154
154
"usage: " + chalk . bold . green ( "pbjs" ) + " [options] file1.proto file2.json ..." + chalk . gray ( " (or pipe) " ) + "other | " + chalk . bold . green ( "pbjs" ) + " [options] -" ,
155
155
""
0 commit comments