From bb4dd2da3bf0ddd2424c82fa87c897e05656daf6 Mon Sep 17 00:00:00 2001 From: Adrian Heine Date: Fri, 27 Oct 2017 11:22:54 +0200 Subject: [PATCH] Update description of ecmaVersion argument --- README.md | 4 ++-- src/bin/acorn.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bd853c43b..ab2c12ea5 100644 --- a/README.md +++ b/README.md @@ -351,8 +351,8 @@ The `bin/acorn` utility can be used to parse a file from the command line. It accepts as arguments its input file and the following options: -- `--ecma3|--ecma5|--ecma6|--ecma7`: Sets the ECMAScript version to parse. Default is - version 5. +- `--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9`: Sets the ECMAScript version + to parse. Default is version 7. - `--module`: Sets the parsing mode to `"module"`. Is set to `"script"` otherwise. diff --git a/src/bin/acorn.js b/src/bin/acorn.js index b9ee5ee9d..d5fe42521 100644 --- a/src/bin/acorn.js +++ b/src/bin/acorn.js @@ -7,7 +7,7 @@ const options = {} function help(status) { const print = (status == 0) ? console.log : console.error - print("usage: " + basename(process.argv[1]) + " [--ecma3|--ecma5|--ecma6|--ecma7|...|--ecma2015|--ecma2016|...]") + print("usage: " + basename(process.argv[1]) + " [--ecma3|--ecma5|--ecma6|--ecma7|--ecma8|--ecma9|...|--ecma2015|--ecma2016|--ecma2017|--ecma2018|...]") print(" [--tokenize] [--locations] [---allow-hash-bang] [--compact] [--silent] [--module] [--help] [--] [infile]") process.exit(status) }