about summary refs log tree commit diff stats
path: root/apps
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-05-28 23:07:56 -0700
committerKartik Agaram <vc@akkartik.com>2020-05-28 23:07:56 -0700
commitaee83e27521d0d3ba9723837bb9df6fcd2b73751 (patch)
treed529f5982a64db2e026038389a5c3117555eef7a /apps
parent43ce7fdf594cd22e59db3ccdf331f0887ce4e35d (diff)
downloadmu-aee83e27521d0d3ba9723837bb9df6fcd2b73751.tar.gz
6426
Diffstat (limited to 'apps')
-rw-r--r--apps/print-file.mu6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/print-file.mu b/apps/print-file.mu
index 8bec0105..a4b90208 100644
--- a/apps/print-file.mu
+++ b/apps/print-file.mu
@@ -1,5 +1,11 @@
 # accept a filename on the commandline, read it and print it out to screen
 # only ascii right now, just like the rest of Mu
+#
+# To run:
+#   $ ./translate_mu apps/print-file.mu
+#   $ echo abc > x
+#   $ ./a.elf x
+#   abc
 
 fn main _args: (addr array (addr array byte)) -> exit-status/ebx: int {
   var args/eax: (addr array (addr array byte)) <- copy _args