Skip to content

Releases: ko1nksm/getoptions

v2.2.0

14 Nov 12:04

Choose a tag to compare

  • 2.2.0 - 2020-11-14
    • Support for subcommands.

v2.1.0

03 Nov 11:02

Choose a tag to compare

  • 2.1.0 - 2020-11-03
    • Support for abbreviating long options.

v2.0.1

30 Oct 13:45

Choose a tag to compare

  • 2.0.1 - 2020-10-30
    • Add workaround for ksh88 (fixed only the test).

v2.0.0

29 Oct 12:35
3b529cc

Choose a tag to compare

  • 2.0.0 - 2020-10-29
    • Improved the custom error handler. [breaking change]
      • The default error message is passed as the first argument, and changed the order of the arguments.
      • Adds :<PATTERN> to the validator name "pattern" for flexible customization of error message.
      • Adds :<STATUS> to the custom validator name for flexible customization of error message.
      • Changed the return value of custom error handler to be used as the exit status.
    • Invoke validator before pattern matching. [breaking change]
    • Added extension features (prehook and invoke).
    • setup helper function.
      • Added help and leading attributes.
        • Calling getoptions_help is no longer needed. [breaking change]
      • Remove equal attribute.
    • option helper function.
      • Changed the default attribute to the on attribute. [breaking change]
      • Added support --no-option syntax and the off attribute.
    • flag, param, option, disp and msg helper function.
      • Added label attribute.
    • setup, flag, param and option helper function.
      • Added @export as initial value.
    • Disable expansion variables in the help display. [breaking change]

v1.1.0

21 Oct 14:04

Choose a tag to compare

  • 1.1.0 - 2020-10-21
    • Unset OPTARG when the option parser ends normally (#3 Cem Keylan)
    • Reset OPTIND to 1 when the option parser ends normally
    • Added @none as initial value

v1.0.0

20 Aug 12:20

Choose a tag to compare

  • 1.0.0 - 2020-08-20
    • First release version