1. Yaron Minsky
  2. core hello world


Yaron Minsky  committed 65cda82

small tweak

  • Participants
  • Parent commits 9e9bc5d
  • Branches default

Comments (0)

Files changed (1)

File README.md

View file
  • Ignore whitespace
 OCamlbuild.  To use this, first get OPAM, and install the "core"
 package.  Also, it's probably doing this:
-    opam switch ocaml-4.00.1+short-types
+    $ opam switch ocaml-4.00.1+short-types
 to get better error messages from the compiler when using Core.  (As
 of 4.01, this compiler variant should be obsolete.)
 You can build the project by running:
-    ./build.sh hello_world.native
+    $ ./build.sh hello_world.native
 and you can then use it as follows:
     core-hello-world $ ./hello_world.native
     Hello World!
-    core-hello-world $ ./hello_world.native -h
+    core-hello-world $ ./hello_world.native -help
     Hello World
       [-help]        print this help text and exit
                      (alias: -?)
-    flag -h is an ambiguous prefix: -hello, -help
     core-hello-world $ ./hello_world.native -hello "Goodbye" -world "Yellow Brick Road"
     Goodbye Yellow Brick Road!