Print error message on bad CLI usage.
This was a small regression when bundling cli-main
into boot.janet.
@@ -93,6 +93,9 @@ int main(int argc, char **argv) {
JanetFiber *fiber = janet_fiber(janet_unwrap_function(mainfun), 64, 1, mainargs);
fiber->env = env;
status = janet_continue(fiber, janet_wrap_nil(), &out);
+ if (status != JANET_SIGNAL_OK) {
+ janet_stacktrace(fiber, out);
+ }
/* Deinitialize vm */
janet_deinit();
