Permalink
Browse files

fix cli-args

Signed-off-by: Chris Granger <ibdknox@gmail.com>
  • Loading branch information...
1 parent c67ee1b commit 1fd890b77e27789bd0edcb1a8dcf80949b2b41c2 @ibdknox ibdknox committed Aug 26, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 README.md
  2. +2 −2 cljs-watch
View
@@ -13,7 +13,7 @@ Put `cljs-watch` on your $PATH (such as in /usr/local/bin) and then simply run i
cljs-watch
#it can also take a directory and compile options
-cljs-watch cljs-src/ {:optimizations :none}
+cljs-watch cljs-src/ {:optimizations :none :output-to \"test.js\"}
```
## Notes
View
@@ -85,7 +85,7 @@ exec java -server -Xmx2G -Xms2G -Xmn256m -cp "${CLJS_LIB}:${CLJS_SRC}:${CLJS_CLJ
(let [{:keys [source options]} (transform-cl-args *command-line-args*)
src-dir (or source \"src/\")
opts (merge default-opts options)]
- (.mkdirs (file (:output-dir opts)))
+ (println (pr-str *command-line-args*))
(watcher-print \"Building ClojureScript files in ::\" src-dir)
(compile-cljs src-dir opts)
(status-print \"[done]\")
@@ -96,4 +96,4 @@ exec java -server -Xmx2G -Xms2G -Xmn256m -cp "${CLJS_LIB}:${CLJS_SRC}:${CLJS_CLJ
(watcher-print \"Compiling updated files...\")
(compile-cljs src-dir opts)
(status-print \"[done]\")))))
-"
+" $1 $*

0 comments on commit 1fd890b

Please sign in to comment.