This commit is contained in:
Michiel Borkent 2019-08-15 09:08:30 +02:00
parent 97fc87f24f
commit e95b0bbdbc

View file

@ -140,7 +140,7 @@ More examples can be found in the [gallery](#gallery).
Babashka expressions may be executed from a file using `-f` or `--file`: Babashka expressions may be executed from a file using `-f` or `--file`:
``` shellsession ``` shellsession
bb -f script.clj bb -f download_html.clj
``` ```
Using `bb` with a shebang also works: Using `bb` with a shebang also works:
@ -156,7 +156,7 @@ Using `bb` with a shebang also works:
(System/exit 1))))) (System/exit 1)))))
(defn write-html [file html] (defn write-html [file html]
(println "Writing html to" file) (println "Writing file:" file)
(spit file html)) (spit file html))
(let [[url file] *command-line-args*] (let [[url file] *command-line-args*]