summaryrefslogtreecommitdiff
path: root/main.v
diff options
context:
space:
mode:
Diffstat (limited to 'main.v')
-rw-r--r--main.v12
1 files changed, 12 insertions, 0 deletions
diff --git a/main.v b/main.v
new file mode 100644
index 0000000..e6f8d95
--- /dev/null
+++ b/main.v
@@ -0,0 +1,12 @@
+import os
+
+fn main() {
+ if os.args.len <= 1 {
+ println("usage: prile [filename]...")
+ exit(1)
+ }
+ for arg in os.args[1..] {
+ if !os.is_file(arg) { continue }
+ println(os.read_file(arg) or {""})
+ }
+}