From cee56dab67b9feee11cd1b8099c59df77748b146 Mon Sep 17 00:00:00 2001 From: Forbes Lindesay Date: Tue, 13 Jan 2015 18:08:33 +0000 Subject: [PATCH] Add --ecma7 option to CLI --- bin/acorn | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/acorn b/bin/acorn index ca6e32a0c6..b80ad29d51 100755 --- a/bin/acorn +++ b/bin/acorn @@ -20,6 +20,7 @@ for (var i = 2; i < process.argv.length; ++i) { else if (arg == "--ecma3") options.ecmaVersion = 3; else if (arg == "--ecma5") options.ecmaVersion = 5; else if (arg == "--ecma6") options.ecmaVersion = 6; + else if (arg == "--ecma7") options.ecmaVersion = 7; else if (arg == "--strictSemicolons") options.strictSemicolons = true; else if (arg == "--locations") options.locations = true; else if (arg == "--silent") silent = true;