Skip to content

Commit

Permalink
Added --help option
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly committed May 5, 2024
1 parent b5a9fca commit 04e27a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ usage =
, " the options used for proving"
, ""
, "Options:"
, "--help : Display this help text"
, "--security <int> : The security level of the proof (default: 128)"
, "--size <int> : The number of elements in the input set (default: 100)"
, "--len <int> : The length (in bytes) of each item in the input set (default: 8)"
Expand All @@ -82,6 +83,8 @@ parseCommand = \case

parseOptions = \case
[] -> pure defaultOptions
("--help" : _) ->
usage >> exitWith ExitSuccess
("--security" : lam : rest) -> do
let λ = read lam
opts <- parseOptions rest
Expand Down

0 comments on commit 04e27a0

Please sign in to comment.