Skip to content

Commit

Permalink
Clean port to Git
Browse files Browse the repository at this point in the history
  • Loading branch information
trevor committed May 4, 2013
0 parents commit c12e4c8
Show file tree
Hide file tree
Showing 9 changed files with 823 additions and 0 deletions.
19 changes: 19 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Package: getopt
Type: Package
Title: C-like getopt behavior.
Version: 1.19.1
Author: Allen Day
Contributions from Trevor L Davis
Maintainer: Trevor L Davis <[email protected]>
URL: https://github.com/trevorld/getopt
BugReports: https://github.com/trevorld/getopt/issues
Description: 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 package optparse
which adds extra features (automatically generated help option and usage,
support for default values, basic positional argument support).
License: GPL (>= 2)
Suggests:
testthat
Collate:
'getopt.R'
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export(get_Rscript_filename)
export(getopt)
11 changes: 11 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
getopt 1.19.1
=============
* If a passed in option matches multiple options in the getopt specification but matches one exactly
then `getopt` now uses that value instead of throwing a "long flag is ambiguous" error.

getopt 1.19.0
=============
* Exports new function `get_Rscript_filename` that returns name of calling script,
`getopt` now uses this function value as default for `command` argument
* Documentation improved and now highlights differences
between `getopt` and `optparse` packages for new undecided users
Loading

0 comments on commit c12e4c8

Please sign in to comment.