fix flag spacing in README

`--source-map-include-sources` makes the column width too wide.  Adding spacing helps makes it more readable.
This commit is contained in:
Tom Byrer 2015-05-22 07:14:35 -06:00
parent c6fa291571
commit 1b860b9d5a

View File

@ -54,22 +54,29 @@ The available options are:
``` ```
--source-map Specify an output file where to generate source --source-map Specify an output file where to generate source
map. map.
--source-map-root The path to the original source to be included --source-map-root The path to the original source to be included
in the source map. in the source map.
--source-map-url The path to the source map to be added in //# --source-map-url The path to the source map to be added in //#
sourceMappingURL. Defaults to the value passed sourceMappingURL. Defaults to the value passed
with --source-map. with --source-map.
--source-map-include-sources Pass this flag if you want to include the --source-map-include-sources Pass this flag if you want to include the
content of source files in the source map as content of source files in the source map as
sourcesContent property. sourcesContent property.
--in-source-map Input source map, useful if you're compressing --in-source-map Input source map, useful if you're compressing
JS that was generated from some other original JS that was generated from some other original
code. code.
--screw-ie8 Pass this flag if you don't care about full --screw-ie8 Pass this flag if you don't care about full
compliance with Internet Explorer 6-8 quirks compliance with Internet Explorer 6-8 quirks
(by default UglifyJS will try to be IE-proof). (by default UglifyJS will try to be IE-proof).
--expr Parse a single expression, rather than a --expr Parse a single expression, rather than a
program (for parsing JSON) program (for parsing JSON)
-p, --prefix Skip prefix for original filenames that appear -p, --prefix Skip prefix for original filenames that appear
in source maps. For example -p 3 will drop 3 in source maps. For example -p 3 will drop 3
directories from file names and ensure they are directories from file names and ensure they are
@ -77,18 +84,26 @@ The available options are:
relative, which will make UglifyJS figure out relative, which will make UglifyJS figure out
itself the relative paths between original itself the relative paths between original
sources, the source map and the output file. sources, the source map and the output file.
-o, --output Output file (default STDOUT). -o, --output Output file (default STDOUT).
-b, --beautify Beautify output/specify output options. -b, --beautify Beautify output/specify output options.
-m, --mangle Mangle names/pass mangler options. -m, --mangle Mangle names/pass mangler options.
-r, --reserved Reserved names to exclude from mangling. -r, --reserved Reserved names to exclude from mangling.
-c, --compress Enable compressor/pass compressor options. Pass -c, --compress Enable compressor/pass compressor options. Pass
options like -c options like -c
hoist_vars=false,if_return=false. Use -c with hoist_vars=false,if_return=false. Use -c with
no argument to use the default compression no argument to use the default compression
options. options.
-d, --define Global definitions -d, --define Global definitions
-e, --enclose Embed everything in a big function, with a -e, --enclose Embed everything in a big function, with a
configurable parameter/argument list. configurable parameter/argument list.
--comments Preserve copyright comments in the output. By --comments Preserve copyright comments in the output. By
default this works like Google Closure, keeping default this works like Google Closure, keeping
JSDoc-style comments that contain "@license" or JSDoc-style comments that contain "@license" or
@ -101,37 +116,54 @@ The available options are:
kept when compression is on, because of dead kept when compression is on, because of dead
code removal or cascading statements into code removal or cascading statements into
sequences. sequences.
--preamble Preamble to prepend to the output. You can use --preamble Preamble to prepend to the output. You can use
this to insert a comment, for example for this to insert a comment, for example for
licensing information. This will not be licensing information. This will not be
parsed, but the source map will adjust for its parsed, but the source map will adjust for its
presence. presence.
--stats Display operations run time on STDERR. --stats Display operations run time on STDERR.
--acorn Use Acorn for parsing. --acorn Use Acorn for parsing.
--spidermonkey Assume input files are SpiderMonkey AST format --spidermonkey Assume input files are SpiderMonkey AST format
(as JSON). (as JSON).
--self Build itself (UglifyJS2) as a library (implies --self Build itself (UglifyJS2) as a library (implies
--wrap=UglifyJS --export-all) --wrap=UglifyJS --export-all)
--wrap Embed everything in a big function, making the --wrap Embed everything in a big function, making the
“exports” and “global” variables available. You “exports” and “global” variables available. You
need to pass an argument to this option to need to pass an argument to this option to
specify the name that your module will take specify the name that your module will take
when included in, say, a browser. when included in, say, a browser.
--export-all Only used when --wrap, this tells UglifyJS to --export-all Only used when --wrap, this tells UglifyJS to
add code to automatically export all globals. add code to automatically export all globals.
--lint Display some scope warnings --lint Display some scope warnings
-v, --verbose Verbose -v, --verbose Verbose
-V, --version Print version number and exit. -V, --version Print version number and exit.
--noerr Don't throw an error for unknown options in -c, --noerr Don't throw an error for unknown options in -c,
-b or -m. -b or -m.
--bare-returns Allow return outside of functions. Useful when --bare-returns Allow return outside of functions. Useful when
minifying CommonJS modules. minifying CommonJS modules.
--keep-fnames Do not mangle/drop function names. Useful for --keep-fnames Do not mangle/drop function names. Useful for
code relying on Function.prototype.name. code relying on Function.prototype.name.
--reserved-file File containing reserved names --reserved-file File containing reserved names
--reserve-domprops Make (most?) DOM properties reserved for --reserve-domprops Make (most?) DOM properties reserved for
--mangle-props --mangle-props
--mangle-props Mangle property names --mangle-props Mangle property names
--name-cache File to hold mangled names mappings --name-cache File to hold mangled names mappings
``` ```