about summary refs log tree commit diff stats
path: root/archive/1.vm/args.mu
diff options
context:
space:
mode:
Diffstat (limited to 'archive/1.vm/args.mu')
-rw-r--r--archive/1.vm/args.mu8
1 files changed, 8 insertions, 0 deletions
diff --git a/archive/1.vm/args.mu b/archive/1.vm/args.mu
new file mode 100644
index 00000000..3726f097
--- /dev/null
+++ b/archive/1.vm/args.mu
@@ -0,0 +1,8 @@
+# To provide commandline args to a Mu program, use '--'. In this case:
+#   $ ./mu args.mu -- abc
+#   abc
+def main text:text [
+  local-scope
+  load-inputs
+  $print text 10/newline
+]