summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 086f647..b6b2a2c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,5 +14,9 @@ int main(int argc, char **argv) {
pit_install_library_plist(rt);
pit_install_library_alist(rt);
pit_install_library_bytestring(rt);
- PIT_DEFAULT_MAIN(rt);
+ if (argc < 2) {
+ pit_repl(rt);
+ } else {
+ pit_run_file(rt, argv[1]);
+ }
}