doc
This commit is contained in:
parent
97fc87f24f
commit
e95b0bbdbc
1 changed files with 2 additions and 2 deletions
|
|
@ -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*]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue