- changed status to resolved
Consider magrittr integration
Issue #1
resolved
That would allow you to write
library(magrittr)
library(argparser, quietly=TRUE)
argv <- arg.parser("Round a floating point number") %>%
add.argument("number", help="number to round", type="numeric") %>%
add.argument(p, "--digits", help="number of decimal places", default=0) %>%
parse.args()
Comments (2)
-
repo owner -
repo owner Thanks for your suggestion. It's a very interesting package. I am fan of boost in C++ myself, so I am all for syntactic sugar. I just think it should be optional.
- Log in to comment
The code is definitely simpler though a little exotic. I've added a example script and created Wiki page for this alternative usage.