diff options
author | Julien Dessaux | 2021-10-17 23:48:37 +0200 |
---|---|---|
committer | Julien Dessaux | 2021-10-17 23:52:48 +0200 |
commit | 51bd94646aa72d9335f9294bb3a13bf567f0eefc (patch) | |
tree | 34c28df2c1608390ca655a949747a027e627d0aa | |
parent | Cosmetic (diff) | |
download | nimfunge98-1.0.1.tar.gz nimfunge98-1.0.1.tar.bz2 nimfunge98-1.0.1.zip |
Fixed USAGE and readme that no longer reflected correct program invocation1.0.1
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | nimfunge98.nimble | 2 | ||||
-rw-r--r-- | src/nimfunge98.nim | 9 |
3 files changed, 7 insertions, 6 deletions
@@ -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) |