-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Make parse errors less verbose
* 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 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. ```r if (!interactive()) options(error=function(e) quit('no', status = 1, runLast = FALSE)) ``` closes #40
- Loading branch information
Showing
5 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: argparse | ||
Type: Package | ||
Title: Command Line Optional and Positional Argument Parser | ||
Version: 2.1.5 | ||
Authors@R: c(person("Trevor L", "Davis", role=c("aut", "cre"), | ||
Version: 2.1.6 | ||
Authors@R: c(person("Trevor L", "Davis", role=c("aut", "cre"), | ||
email="[email protected]", | ||
comment = c(ORCID = "0000-0001-6341-4639")), | ||
person("Allen", "Day", role="ctb", comment="Some documentation and examples ported from the getopt package."), | ||
|
@@ -16,6 +16,8 @@ Copyright: See file (inst/)COPYRIGHTS. | |
URL: https://github.com/trevorld/r-argparse | ||
BugReports: https://github.com/trevorld/r-argparse/issues | ||
LazyLoad: yes | ||
Depends: | ||
R (>= 3.6.0) | ||
Imports: | ||
R6, | ||
findpython, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters