aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMarvin Borner2022-07-18 23:29:18 +0200
committerMarvin Borner2022-07-18 23:29:18 +0200
commit6c833c1e5fad32bf6262af226b25a0e0b61c4d0b (patch)
tree57394663d94d7ba71c190ae76a0b9f8ecec946a1 /src
parent4207797a2a96c2be9e07c4dee5a1fa1f89e845ed (diff)
Improved help screen
Diffstat (limited to 'src')
-rw-r--r--src/Eval.hs9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Eval.hs b/src/Eval.hs
index 5494ee7..0b7632a 100644
--- a/src/Eval.hs
+++ b/src/Eval.hs
@@ -198,7 +198,14 @@ runRepl = do
return code
usage :: IO ()
-usage = putStrLn "Invalid arguments. Use 'bruijn [file]' instead"
+usage = do
+ putStrLn "Invalid arguments. Use 'bruijn [option] path' instead"
+ putStrLn "-c\tcompile path to binary-BLC"
+ putStrLn "-C\tcompile path to ASCII-BLC"
+ putStrLn "-e\texecute path as binary-BLC"
+ putStrLn "-E\texecute path as ASCII-BLC"
+ putStrLn "-*\tshow this help"
+ putStrLn "<default>\texecute path as text-bruijn"
evalMain :: IO ()
evalMain = do