Skip to content

Commit

Permalink
improv
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Jun 12, 2024
1 parent 0bb0900 commit 04211dc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/gerbil/gxi-main.ss
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@
((member hd '("-r" "--run"))
(match rest
([x . rest]
(eval `(import ,x))
(try-main! rest (lambda (args) (error "cannot run module" x args))))
(let (mod (if (string-prefix? ":" x)
(string->symbol x)
x))
(eval `(import ,mod))
(try-main! rest (lambda (args) (error "cannot run module" x args)))))
(else
(error "missing argument for module to run"))))
((member hd '("-l" "--lang"))
Expand Down

0 comments on commit 04211dc

Please sign in to comment.