@@ -33,8 +33,8 @@ exports.main = function main(args, callback) {
3333 "force-long" : "strict-long" ,
3434 "force-message" : "strict-message"
3535 } ,
36- string : [ "target" , "out" , "path" , "wrap" , "root" , "lint" ] ,
37- boolean : [ "create" , "encode" , "decode" , "verify" , "convert" , "delimited" , "beautify" , "comments" , "es6" , "sparse" , "keep-case" , "force-long" , "force-message" ] ,
36+ string : [ "target" , "out" , "path" , "wrap" , "dependency" , " root", "lint" ] ,
37+ boolean : [ "create" , "encode" , "decode" , "verify" , "convert" , "delimited" , "beautify" , "comments" , "es6" , "sparse" , "keep-case" , "force-long" , "force-number" , "force-enum-string" , "force- message" ] ,
3838 default : {
3939 target : "json" ,
4040 create : true ,
@@ -49,6 +49,8 @@ exports.main = function main(args, callback) {
4949 lint : lintDefault ,
5050 "keep-case" : false ,
5151 "force-long" : false ,
52+ "force-number" : false ,
53+ "force-enum-string" : false ,
5254 "force-message" : false
5355 }
5456 } ) ;
@@ -99,6 +101,8 @@ exports.main = function main(args, callback) {
99101 " es6 ES6 wrapper (implies --es6)" ,
100102 " closure A closure adding to protobuf.roots where protobuf is a global" ,
101103 "" ,
104+ " --dependency Specifies which version of protobuf to require. Accepts any valid module id" ,
105+ "" ,
102106 " -r, --root Specifies an alternative protobuf.roots name." ,
103107 "" ,
104108 " -l, --lint Linter configuration. Defaults to protobuf.js-compatible rules:" ,
@@ -123,6 +127,7 @@ exports.main = function main(args, callback) {
123127 " --no-comments Does not output any JSDoc comments." ,
124128 "" ,
125129 " --force-long Enfores the use of 'Long' for s-/u-/int64 and s-/fixed64 fields." ,
130+ " --force-number Enfores the use of 'number' for s-/u-/int64 and s-/fixed64 fields." ,
126131 " --force-message Enfores the use of message instances instead of plain objects." ,
127132 "" ,
128133 "usage: " + chalk . bold . green ( "pbjs" ) + " [options] file1.proto file2.json ..." + chalk . gray ( " (or pipe) " ) + "other | " + chalk . bold . green ( "pbjs" ) + " [options] -" ,
0 commit comments