argparse: Command Line Optional and Positional Argument Parser

A command line parser to be used with 'Rscript' to write "#!" shebang scripts that gracefully accept positional and optional arguments and automatically generate usage.

Package details

AuthorTrevor L Davis [aut, cre] (<https://orcid.org/0000-0001-6341-4639>), Allen Day [ctb] (Some documentation and examples ported from the getopt package.), Python Software Foundation [ctb] (Some documentation from the argparse Python module.), Paul Newell [ctb]
MaintainerTrevor L Davis <trevor.l.davis@gmail.com>
LicenseGPL (>= 2)
Version2.2.2
URL https://github.com/trevorld/r-argparse
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("argparse")

Try the argparse package in your browser

Any scripts or data that you put into this service are public.

argparse documentation built on Feb. 16, 2023, 8:23 p.m.