diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2008-08-23 11:16:44 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2008-08-23 11:16:44 +0200 |
commit | 07d5a8085bbcc21a1d9d06a2976ecc00e9c8d55b (patch) | |
tree | b07a53afeb56f4bba917c1a3a843f48dd25b62be /doc/tutorial.txt | |
parent | 916c25f9a70b68eb7a5e2c45d7cc2e10c6e3a525 (diff) | |
download | Nim-07d5a8085bbcc21a1d9d06a2976ecc00e9c8d55b.tar.gz |
too many changes to list
Diffstat (limited to 'doc/tutorial.txt')
-rw-r--r-- | doc/tutorial.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/tutorial.txt b/doc/tutorial.txt index f37b116c4..795fc0d90 100644 --- a/doc/tutorial.txt +++ b/doc/tutorial.txt @@ -85,13 +85,13 @@ We start the tour with a modified "hallo world" program: Save this code to the file "greeting.nim". Now compile and run it:: - nimrod run greeting.nim + nimrod compile --run greeting.nim -As you see, with the ``run`` command Nimrod executes the file automatically +As you see, with the ``--run`` switch Nimrod executes the file automatically after compilation. You can even give your program command line arguments by appending them after the filename that is to be compiled and run:: - nimrod run greeting.nim arg1 arg2 + nimrod compile --run greeting.nim arg1 arg2 Though it should be pretty obvious what the program does, I will explain the syntax: Statements which are not indented are executed when the program @@ -198,7 +198,7 @@ An example showing the most common statement types: .. code-block:: Nimrod type - TMyRecord = record + TMyRecord = object x, y: int |