aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--README.md2
-rw-r--r--nimfunge98.nimble2
-rw-r--r--src/nimfunge98.nim9
3 files changed, 7 insertions, 6 deletions
diff --git a/README.md b/README.md
index 7918f60..195e545 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@ nimble install
Launching the interpreter is as simple as :
```
-nimfunge98 -f something.b98
+nimfunge98 something.b98
```
The interpreter will then load and execute the specified Funge-98 program until the program normally terminates or is interrupted or killed.
diff --git a/nimfunge98.nimble b/nimfunge98.nimble
index 6ff1edc..9428df9 100644
--- a/nimfunge98.nimble
+++ b/nimfunge98.nimble
@@ -1,6 +1,6 @@
# Package
-version = "1.0.0"
+version = "1.0.1"
author = "Julien Dessaux"
description = "A Funge-98 interpreter written in nim"
license = "EUPL-1.2"
diff --git a/src/nimfunge98.nim b/src/nimfunge98.nim
index f800062..98ab99e 100644
--- a/src/nimfunge98.nim
+++ b/src/nimfunge98.nim
@@ -8,10 +8,10 @@ import strformat
proc Usage(i: int = 0) =
let filename = getAppFilename().extractFilename()
- echo fmt"""Usage of {filename}:
- -f string b98 file to interpret
- -h display this help message
- """
+ echo fmt"""Usage: {filename} [FLAGS] filename
+
+FLAGS:
+ -h display this help message"""
if i != 0:
quit i
@@ -28,6 +28,7 @@ for kind, key, value in getOpt():
case key
of "h":
Usage()
+ quit 0
else:
echo "Unknown option: ", key
Usage(1)