Skip to content

Commit

Permalink
Update CLI options help and README
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-traverse committed Jul 26, 2024
1 parent d5700a5 commit 9bcc006
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ Translates between file formats and generates static code.
--force-number Enforces the use of 'number' for s-/u-/int64 and s-/fixed64 fields.
--force-message Enforces the use of message instances instead of plain objects.
--null-semantics Make nullable fields match protobuf semantics (including the optional keyword)
--null-defaults Default value for optional fields is null instead of zero value (no effect if --null-semantics is specified)
--null-defaults Default value for optional fields is null instead of zero value.
--null-semantics Make nullable fields match protobuf semantics (overrides --null-defaults).
usage: pbjs [options] file1.proto file2.json ... (or pipe) other | pbjs [options] -
```
Expand Down
10 changes: 5 additions & 5 deletions cli/pbjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exports.main = function main(args, callback) {
"force-message": "strict-message"
},
string: [ "target", "out", "path", "wrap", "dependency", "root", "lint", "filter" ],
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"],
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"],
default: {
target: "json",
create: true,
Expand All @@ -62,8 +62,8 @@ exports.main = function main(args, callback) {
"force-number": false,
"force-enum-string": false,
"force-message": false,
"null-semantics": false,
"null-defaults": false
"null-defaults": false,
"null-semantics": false
}
});

Expand Down Expand Up @@ -148,8 +148,8 @@ exports.main = function main(args, callback) {
" --force-number Enforces the use of 'number' for s-/u-/int64 and s-/fixed64 fields.",
" --force-message Enforces the use of message instances instead of plain objects.",
"",
" --null-semantics Make nullable fields match protobuf semantics (including the optional keyword)",
" --null-defaults Default value for optional fields is null instead of zero value (no effect if --null-semantics is specified)",
" --null-defaults Default value for optional fields is null instead of zero value.",
" --null-semantics Make nullable fields match protobuf semantics (overrides --null-defaults).",
"",
"usage: " + chalk.bold.green("pbjs") + " [options] file1.proto file2.json ..." + chalk.gray(" (or pipe) ") + "other | " + chalk.bold.green("pbjs") + " [options] -",
""
Expand Down

0 comments on commit 9bcc006

Please sign in to comment.