Skip to content

Releases: trevorld/r-optparse

optparse 1.7.5

17 Apr 03:41
Compare
Choose a tag to compare
  • We no longer coerce the type of an option default to match that of
    its type argument when action = "callback".
    Thanks husheng (@hs3434) for bug report (#47).

optparse 1.7.4

17 Jan 00:13
Compare
Choose a tag to compare
  • Revises vignette engine specification in the DESCRIPTION to suppress new CRAN check NOTE (#43).

optparse 1.7.3

20 Jul 18:42
Compare
Choose a tag to compare
  • The errors raised by parse_args() (and parse_args2()) are now of class "optparse_parse_error".

    When interactive() is FALSE we now print out a usage string followed by
    a (less verbose) error message.

  • Throws a more informative error message for unknown short flags when positional_arguments=TRUE.
    Thanks Greg Minshall for bug report (#42).

optparse 1.7.1

08 Oct 19:52
Compare
Choose a tag to compare
  • Add a formatter argument to OptionParser() for a function to format the usage message (#30).
    By default uses the new function IndentedHelpFormatter().
    {optparse} also provides the new function TitledHelpFormatter().
    Thanks Ni Huang for suggestion.

optparse 1.6.6

16 Apr 23:07
Compare
Choose a tag to compare
  • Throws an error for unknown short flags and long flags when positional_arguments=TRUE.
    Thanks Greg Minshall for bug report (#34).
  • If the callback parameter of add_option / make_option is not NULL then
    the default of action is now "callback". Thanks Greg Minshall for suggestion (#35).
  • Better documentation of action=="callback" in the man page for add_option and make_option.
    Thanks Greg Minshall for bug report (#35).

optparse 1.6.4

16 Sep 21:37
Compare
Choose a tag to compare
  • Fixes bug in printing help for action=="callback" when metavar==NULL (#29).
    Thanks Ni Huang for bug report.
  • Throws an error when passed short flags more than one letter long (#32).
    Thanks Gautier Richard for bug report.

optparse 1.6.2

02 Apr 20:29
Compare
Choose a tag to compare
  • Fixs a parsing bug when action=="callback" and positional_argument==TRUE (#28). Thanks Ni Huang for bug report.

optparse 1.6.1

15 Jan 21:20
Compare
Choose a tag to compare
  • Improve accuracy of README (#27). Thanks Alex Penson for bug report.

optparse 1.6.0

18 Jun 03:54
Compare
Choose a tag to compare
  • Support for callback actions (#26). Thanks Gyu Jin Choi for patch.