We do show the usage when the user types hawk --help, but that's only because --help is an invalid option:
> hawk --help
Missing argument representing the function to evaluate:
opts: Options {optDelimiter = Nothing, optRecompile = False, optMap = False, optEval = False, optHelp = True, optIgnoreErrors = True, optModuleFile = Nothing}
args: []
Usage: hawk [<options>] <cmd> [<file>]
-d[<String>] --delimiter[=<String>] String used as delimiter
-r --recompile Recompile toolkit.hs
-m --map Map a command over each string separated by the delimiter
-e --eval Ignore stdin and the input file and evaluate the user expression
-h --help Print help and exit
-E --errors When set, errors in user code block execution. When is not set, errors don't block the execution and are logged to stderr. Default: False
We do show the usage when the user types
hawk --help
, but that's only because--help
is an invalid option: