aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulien Dessaux2021-10-17 23:48:37 +0200
committerJulien Dessaux2021-10-17 23:52:48 +0200
commit51bd94646aa72d9335f9294bb3a13bf567f0eefc (patch)
tree34c28df2c1608390ca655a949747a027e627d0aa /src
parentCosmetic (diff)
downloadnimfunge98-51bd94646aa72d9335f9294bb3a13bf567f0eefc.tar.gz
nimfunge98-51bd94646aa72d9335f9294bb3a13bf567f0eefc.tar.bz2
nimfunge98-51bd94646aa72d9335f9294bb3a13bf567f0eefc.zip
Fixed USAGE and readme that no longer reflected correct program invocation1.0.1
Diffstat (limited to '')
-rw-r--r--src/nimfunge98.nim9
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)