argparse v2.1.6
-
The errors raised by
ArgumentParser()$parse_args()are now of class "argparse_parse_error".They are now less verbose when
interactive()isFALSE(#40).There may still be a trailing "Execution halted" line output by R's default error handler
(wheninteractive()isFALSE).
This can be silenced by setting a new error handler near the top of your Rscript e.g.if (!interactive()) options(error=function(e) quit('no', status = 1, runLast = FALSE))