Update README for changed standalone build argument

This commit is contained in:
Vishesh Yadav 2015-05-14 17:49:21 -04:00
parent ba492401d9
commit cc69a9b5db

View File

@ -29,11 +29,10 @@ amount of time.
Example usage Example usage
Create a simple, executable of your program. At the moment, the program must
Create a simple, standalong executable of your program. At the be written in the base language of whalesong. (This restriction currently
moment, the program must be written in the base language of whalesong. prevents arbitrary racket/base programs from compiling, and we'll be working to
(This restriction currently prevents arbitrary racket/base programs remove this restriction.)
from compiling, and we'll be working to remove this restriction.)
$ cat hello.rkt $ cat hello.rkt
#lang whalesong #lang whalesong
@ -42,8 +41,18 @@ from compiling, and we'll be working to remove this restriction.)
$ ./whalesong.rkt build hello.rkt $ ./whalesong.rkt build hello.rkt
$ ls -l hello.xhtml $ ls -l hello.html
-rw-rw-r-- 1 dyoo nogroup 692213 Jun 7 18:00 hello.xhtml -rw-rw-r-- 1 dyoo nogroup 692213 Jun 7 18:00 hello.html
To build standalone executable of your program, provide --as-standalone-html
flag.
$ ./whalesong.rkt build --as-standalone-html hello.rkt
$ ls -l
-rw-rw-r-- 1 dyoo nogroup 692213 Jun 7 18:00 hello.html
NOTE: Earlier versions had --as-standalone-xhtml flag, which is now removed.
[FIXME: add more examples] [FIXME: add more examples]