@@ -285,7 +285,7 @@ var argv = require('yargs')
285
285
.demandOption ([' f' ])
286
286
.help (' h' )
287
287
.alias (' h' , ' help' )
288
- .epilog (' copyright 2015 ' )
288
+ .epilog (' copyright 2019 ' )
289
289
.argv ;
290
290
291
291
var fs = require (' fs' );
@@ -302,25 +302,38 @@ s.on('end', function () {
302
302
````
303
303
304
304
***
305
- $ node line_count.js count
305
+ $ node line_count.js
306
306
Usage: line_count.js <command> [options]
307
307
308
308
Commands:
309
- count Count the lines in a file
309
+ line_count.js count Count the lines in a file
310
310
311
311
Options:
312
- -f, --file Load a file [required]
313
- -h, --help Show help [boolean]
312
+ --version Show version number [boolean]
313
+ -f, --file Load a file [required]
314
+ -h, --help Show help [boolean]
314
315
315
316
Examples:
316
317
line_count.js count -f foo.js count the lines in the given file
317
318
318
- copyright 2015
319
+ copyright 2019
320
+
321
+ Missing required argument: f
322
+
323
+ $ node line_count.js count
324
+ line_count.js count
325
+
326
+ Count the lines in a file
327
+
328
+ Options:
329
+ --version Show version number [boolean]
330
+ -f, --file Load a file [required]
331
+ -h, --help Show help [boolean]
319
332
320
- Missing required arguments : f
333
+ Missing required argument : f
321
334
322
335
$ node line_count.js count --file line_count.js
323
- 26
336
+ 25
324
337
325
338
$ node line_count.js count -f line_count.js
326
- 26
339
+ 25
0 commit comments