mirror of
https://github.com/janet-lang/janet
synced 2024-12-23 15:00:27 +00:00
Change -c option to use dofile instead of require
This commit is contained in:
parent
7eb78c8028
commit
300124961f
@ -44,7 +44,7 @@
|
|||||||
"n" (fn [&] (set *colorize* false) 1)
|
"n" (fn [&] (set *colorize* false) 1)
|
||||||
"m" (fn [i &] (setdyn :syspath (get process/args (+ i 1))) 2)
|
"m" (fn [i &] (setdyn :syspath (get process/args (+ i 1))) 2)
|
||||||
"c" (fn [i &]
|
"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))
|
(spit (get process/args (+ i 2)) (make-image e))
|
||||||
(set *no-file* false)
|
(set *no-file* false)
|
||||||
3)
|
3)
|
||||||
|
Loading…
Reference in New Issue
Block a user