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 /src/nimfunge98.nim | |
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
Diffstat (limited to 'src/nimfunge98.nim')
-rw-r--r-- | src/nimfunge98.nim | 9 |
1 files changed, 5 insertions, 4 deletions
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) |