Consider magrittr integration

Issue #1 resolved
Former user created an issue

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)

  1. David Shih repo owner

    The code is definitely simpler though a little exotic. I've added a example script and created Wiki page for this alternative usage.

  2. David Shih 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.

  3. Log in to comment