Skip to content

Commit

Permalink
add commander usage
Browse files Browse the repository at this point in the history
  • Loading branch information
walkerwzy committed Sep 14, 2017
1 parent d65cfdf commit bc7d937
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let batchCollect = function(val) {
};
program
.version('0.0.1')
.usage('[option] <file ...>')
.option('-f, --file <type>', 'set input file name','index.html')
.option('-k, --datakeys <keys>', 'set data key names', collect, [])
.option('-K, --batchdatakeys <key,key,key>', 'batch set data keys', batchCollect)
Expand Down

0 comments on commit bc7d937

Please sign in to comment.