From f83986098feec207ffd61d099a0858b9bfd8a84c Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Tue, 16 May 2017 16:42:24 -0500 Subject: [PATCH] [Docs] update output options in readme --- README.md | 57 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index a4e7ce23..5f6fb303 100644 --- a/README.md +++ b/README.md @@ -606,36 +606,35 @@ The code generator tries to output shortest code possible by default. In case you want beautified output, pass `--beautify` (`-b`). Optionally you can pass additional arguments that control the code output: +- `ascii_only` (default `false`) -- escape Unicode characters in strings and + regexps (affects directives with non-ascii characters becoming invalid) - `beautify` (default `true`) -- whether to actually beautify the output. Passing `-b` will set this to true, but you might need to pass `-b` even when you want to generate minified code, in order to specify additional arguments, so you can use `-b beautify=false` to override it. -- `indent_level` (default 4) -- `indent_start` (default 0) -- prefix all lines by that many spaces -- `quote_keys` (default `false`) -- pass `true` to quote all keys in literal - objects -- `space_colon` (default `true`) -- insert a space after the colon signs -- `ascii_only` (default `false`) -- escape Unicode characters in strings and - regexps (affects directives with non-ascii characters becoming invalid) -- `inline_script` (default `false`) -- escape the slash in occurrences of - `