Open
Description
Steps to Reproduce
$ idris2 --check --build lsp.ipkg
Not all command line options can be used to override package options.
Overridable options are:
--quiet
--verbose
--timing
--log <log level>
--dumpcases <file>
--dumplifted <file>
--dumpvmcode <file>
--debug-elab-check
--codegen <cg>
--directive <directive>
--build-dir <dir>
--output-dir <dir>
$ echo $?
0
Expected Behavior
The above looks like an error to me, as I'm using the flags incorrectly. I'd expect the command to return a non-zero exit code.
Observed Behavior
The exit code is 0
.
Notes
Idris2 produces non-zero error codes for other failures, eg.
$ idris2 --build not-found.ipkg
Uncaught error: File error (not-found.ipkg): File Not Found
$ echo $?
1
I tried briefly to dig into the code to see where these error codes are set, but wasn't able to work it out.