support dumping AST (#1879)

Re-order `AST_Binary` properties to make dump more readable.

closes #769
This commit is contained in:
Alex Lam S.L
2017-05-08 06:23:01 +08:00
committed by GitHub
parent 4f8ca4626e
commit da295de82b
4 changed files with 45 additions and 6 deletions

View File

@@ -95,8 +95,9 @@ The available options are:
`wrap_iife` Wrap IIFEs in parenthesis. Note: you may
want to disable `negate_iife` under
compressor options.
-o, --output <file> Output file (default STDOUT). Specify "spidermonkey"
to dump SpiderMonkey AST format (as JSON) to STDOUT.
-o, --output <file> Output file path (default STDOUT). Specify `ast` or
`spidermonkey` to write UglifyJS or SpiderMonkey AST
as JSON to STDOUT respectively.
--comments [filter] Preserve copyright comments in the output. By
default this works like Google Closure, keeping
JSDoc-style comments that contain "@license" or