Package: optparse 1.8.2

optparse: Command Line Option Parser

A command line parser inspired by Python's 'optparse' library to be used with Rscript to write "#!" shebang scripts that accept short and long flag/options.

Authors:Trevor L. Davis [aut, cre], Allen Day [aut], Python Software Foundation [ctb], Steve Lianoglou [ctb], Jim Nikelski [ctb], Kirill Müller [ctb], Peter Humburg [ctb], Rich FitzJohn [ctb], Gyu Jin Choi [ctb]

optparse_1.8.2.tar.gz
optparse_1.8.2.zip(r-4.7)optparse_1.8.2.zip(r-4.6)optparse_1.8.2.zip(r-4.5)
optparse_1.8.2.tgz(r-4.6-any)optparse_1.8.2.tgz(r-4.5-any)
optparse_1.8.2.tar.gz(r-4.7-any)optparse_1.8.2.tar.gz(r-4.6-any)
optparse_1.8.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
optparse/json (API)
NEWS

# Install 'optparse' in R:
install.packages('optparse', repos = c('https://trevorld.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/trevorld/r-optparse/issues

Pkgdown/docs site:https://trevorldavis.com

On CRAN:

Conda:

13.66 score 156 stars 28 packages 24k scripts 29k downloads 15 mentions 9 exports 0 dependencies

Last updated from:a8287e9111. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK115
source / vignettesOK285
linux-release-x86_64OK119
macos-release-arm64OK119
macos-oldrel-arm64OK115
windows-develOK97
windows-releaseOK77
windows-oldrelOK82
wasm-releaseOK86

Exports:add_optionIndentedHelpFormattermake_optionOptionParserOptionParserOptionparse_argsparse_args2print_helpTitledHelpFormatter

Dependencies:

optparse Command Line Option Parsing

Rendered fromoptparse.Rmdusingknitr::rmarkdownon Jun 08 2026.

Last update: 2026-03-22
Started: 2026-03-22