@@ -69,7 +69,7 @@ exports.main = function main(args, callback) {
69
69
70
70
if ( ! files . length ) {
71
71
var descs = Object . keys ( targets ) . filter ( function ( key ) { return ! targets [ key ] . private ; } ) . map ( function ( key ) {
72
- return " " + util . pad ( key , 14 , true ) + targets [ key ] . description ;
72
+ return " " + util . pad ( key , 14 , true ) + targets [ key ] . description ;
73
73
} ) ;
74
74
if ( callback )
75
75
callback ( Error ( "usage" ) ) ; // eslint-disable-line callback-return
@@ -89,15 +89,15 @@ exports.main = function main(args, callback) {
89
89
"" ,
90
90
" --sparse Exports only those types referenced from a main file (experimental)." ,
91
91
"" ,
92
- chalk . bold . gray ( " Module targets only:" ) ,
92
+ chalk . bold . gray ( " Module targets only:" ) ,
93
93
"" ,
94
94
" -w, --wrap Specifies the wrapper to use. Also accepts a path to require a custom wrapper." ,
95
95
"" ,
96
96
" default Default wrapper supporting both CommonJS and AMD" ,
97
97
" commonjs CommonJS wrapper" ,
98
98
" amd AMD wrapper" ,
99
99
" es6 ES6 wrapper (implies --es6)" ,
100
- " closure Just a closure adding to protobuf.roots (see -r) " ,
100
+ " closure A closure adding to protobuf.roots where protobuf is a global " ,
101
101
"" ,
102
102
" -r, --root Specifies an alternative protobuf.roots name." ,
103
103
"" ,
@@ -107,11 +107,11 @@ exports.main = function main(args, callback) {
107
107
"" ,
108
108
" --es6 Enables ES6 syntax (const/let instead of var)" ,
109
109
"" ,
110
- chalk . bold . gray ( " Proto sources only:" ) ,
110
+ chalk . bold . gray ( " Proto sources only:" ) ,
111
111
"" ,
112
112
" --keep-case Keeps field casing instead of converting to camel case." ,
113
113
"" ,
114
- chalk . bold . gray ( " Static targets only:" ) ,
114
+ chalk . bold . gray ( " Static targets only:" ) ,
115
115
"" ,
116
116
" --no-create Does not generate create functions used for reflection compatibility." ,
117
117
" --no-encode Does not generate encode functions." ,
@@ -125,7 +125,7 @@ exports.main = function main(args, callback) {
125
125
" --force-long Enfores the use of 'Long' for s-/u-/int64 and s-/fixed64 fields." ,
126
126
" --force-message Enfores the use of message instances instead of plain objects." ,
127
127
"" ,
128
- "usage: " + chalk . bold . green ( "pbjs" ) + " [options] file1.proto file2.json ..." + chalk . gray ( " (or) " ) + "other | " + chalk . bold . green ( "pbjs" ) + " [options] -" ,
128
+ "usage: " + chalk . bold . green ( "pbjs" ) + " [options] file1.proto file2.json ..." + chalk . gray ( " (or pipe ) " ) + "other | " + chalk . bold . green ( "pbjs" ) + " [options] -" ,
129
129
""
130
130
] . join ( "\n" ) ) ;
131
131
return 1 ;
0 commit comments