1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-23 06:50:26 +00:00

Change -c option to use dofile instead of require

This commit is contained in:
Calvin Rose 2019-06-19 22:05:13 -04:00
parent 7eb78c8028
commit 300124961f

View File

@ -44,7 +44,7 @@
"n" (fn [&] (set *colorize* false) 1)
"m" (fn [i &] (setdyn :syspath (get process/args (+ i 1))) 2)
"c" (fn [i &]
(def e (require (get process/args (+ i 1))))
(def e (dofile (get process/args (+ i 1))))
(spit (get process/args (+ i 2)) (make-image e))
(set *no-file* false)
3)