Document `--` for usage in CLI class
authorRichard van Velzen <rvanvelzen1@gmail.com>
Wed, 7 Jan 2015 18:04:10 +0000 (19:04 +0100)
committerRichard van Velzen <rvanvelzen1@gmail.com>
Wed, 7 Jan 2015 18:04:10 +0000 (19:04 +0100)
Close #518

README.md

index a04ac4e..d2ec432 100644 (file)
--- a/README.md
+++ b/README.md
@@ -44,6 +44,11 @@ variable/function declared in another file will be matched properly.
 If you want to read from STDIN instead, pass a single dash instead of input
 files.
 
+If you wish to pass your options before the input files, separate the two with
+a double dash to prevent input files being used as option arguments:
+
+    uglifyjs --compress --mangle -- input.js
+
 The available options are:
 
 ```