Skip to content

Commit

Permalink
set 'es' to default type in cli, and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgovea committed Aug 21, 2019
1 parent abd99a9 commit 3022307
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Full cli option list:
-j, --json force jison to expect a grammar in JSON format
-o FILE, --outfile FILE Filename and base module name of the generated parser
-t, --debug Debug mode
-m TYPE, --module-type TYPE The type of module to generate (commonjs, amd, js)
-m TYPE, --module-type TYPE The type of module to generate (**es**, commonjs, amd, js)
-p TYPE, --parser-type TYPE The type of algorithm to use for the parser (lr0, slr, lalr, lr)
-V, --version print version and exit

Expand Down
4 changes: 2 additions & 2 deletions lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ function getCommandlineOptions () {
.option('module-type', {
abbr : 'm',
default:
'commonjs',
'es',
metavar : 'TYPE',
help : 'The type of module to generate (commonjs, amd, js)'
help : 'The type of module to generate (es, commonjs, amd, js)'
})
.option('parser-type', {
abbr : 'p',
Expand Down

0 comments on commit 3022307

Please sign in to comment.