getopt: C-Like 'getopt' Behavior

Package designed to be used with Rscript to write '#!' shebang scripts that accept short and long flags/options. Many users will prefer using instead the packages optparse or argparse which add extra features like automatically generated help option and usage, support for default values, positional argument support, etc.

Version: 1.20.4
Imports: stats
Suggests: testthat
Published: 2023-10-01
DOI: 10.32614/CRAN.package.getopt
Author: Trevor L Davis ORCID iD [aut, cre], Allen Day [aut] (Original package author), Roman Zenka [ctb]
Maintainer: Trevor L Davis <trevor.l.davis at>
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
NeedsCompilation: no
Materials: README NEWS
CRAN checks: getopt results


Reference manual: getopt.pdf


Package source: getopt_1.20.4.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): getopt_1.20.4.tgz, r-oldrel (arm64): getopt_1.20.4.tgz, r-release (x86_64): getopt_1.20.4.tgz, r-oldrel (x86_64): getopt_1.20.4.tgz
Old sources: getopt archive

Reverse dependencies:

Reverse imports: artMS, optparse
Reverse suggests: SoilR


Please use the canonical form to link to this page.