Skip to content

Commit 9bcc006

Browse files
Update CLI options help and README
1 parent d5700a5 commit 9bcc006

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cli/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ Translates between file formats and generates static code.
6969
--force-number Enforces the use of 'number' for s-/u-/int64 and s-/fixed64 fields.
7070
--force-message Enforces the use of message instances instead of plain objects.
7171
72-
--null-semantics Make nullable fields match protobuf semantics (including the optional keyword)
73-
--null-defaults Default value for optional fields is null instead of zero value (no effect if --null-semantics is specified)
72+
--null-defaults Default value for optional fields is null instead of zero value.
73+
--null-semantics Make nullable fields match protobuf semantics (overrides --null-defaults).
7474
7575
usage: pbjs [options] file1.proto file2.json ... (or pipe) other | pbjs [options] -
7676
```

cli/pbjs.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ exports.main = function main(args, callback) {
4141
"force-message": "strict-message"
4242
},
4343
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", "null-semantics", "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-defaults", "null-semantics"],
4545
default: {
4646
target: "json",
4747
create: true,
@@ -62,8 +62,8 @@ exports.main = function main(args, callback) {
6262
"force-number": false,
6363
"force-enum-string": false,
6464
"force-message": false,
65-
"null-semantics": false,
66-
"null-defaults": false
65+
"null-defaults": false,
66+
"null-semantics": false
6767
}
6868
});
6969

@@ -148,8 +148,8 @@ exports.main = function main(args, callback) {
148148
" --force-number Enforces the use of 'number' for s-/u-/int64 and s-/fixed64 fields.",
149149
" --force-message Enforces the use of message instances instead of plain objects.",
150150
"",
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)",
151+
" --null-defaults Default value for optional fields is null instead of zero value.",
152+
" --null-semantics Make nullable fields match protobuf semantics (overrides --null-defaults).",
153153
"",
154154
"usage: " + chalk.bold.green("pbjs") + " [options] file1.proto file2.json ..." + chalk.gray(" (or pipe) ") + "other | " + chalk.bold.green("pbjs") + " [options] -",
155155
""

0 commit comments

Comments
 (0)