Skip to content

argparse v2.1.6

Choose a tag to compare

@trevorld trevorld released this 17 Jul 20:26
  • The errors raised by ArgumentParser()$parse_args() are now of class "argparse_parse_error".

    They are now less verbose when interactive() is FALSE (#40).

    There may still be a trailing "Execution halted" line output by R's default error handler
    (when interactive() is FALSE).
    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))