summaryrefslogtreecommitdiffstats
path: root/ocamlbuild/examples/example1/hello.ml
diff options
context:
space:
mode:
Diffstat (limited to 'ocamlbuild/examples/example1/hello.ml')
-rw-r--r--ocamlbuild/examples/example1/hello.ml5
1 files changed, 5 insertions, 0 deletions
diff --git a/ocamlbuild/examples/example1/hello.ml b/ocamlbuild/examples/example1/hello.ml
new file mode 100644
index 000000000..c85cb66b8
--- /dev/null
+++ b/ocamlbuild/examples/example1/hello.ml
@@ -0,0 +1,5 @@
+let _ =
+ Printf.printf "Hello, %s ! My name is %s\n"
+ (if Array.length Sys.argv > 1 then Sys.argv.(1) else "stranger")
+ Sys.argv.(0)
+;;