Releases: Alhadis/GetOptions
Releases · Alhadis/GetOptions
v1.2.0
Introduced several features to simplify control of option processing.
- Added: Ability to extract option-lists from strings
- Added: Setting to disable mixed-order option/argument lists
- Added: Setting to throw an error for unrecognised options
- Added: Support for terminating options using a double-dash
- Fixed: Options array being modified by reference
v1.1.3
Fixed an oversight with recently-added type definitions:
- Fixed: Breakage in TypeScript if optional parameters were omitted
- Fixed: Incomplete option typing for
noAliasPropagation
v1.1.2
v1.1.1
v1.1.0
This release fixes bugs with option-bundles, and adds helpful features.
- Added: Ability to parse options without defining them
- Added: Setting to disable bundling
- Added: Support for shell-style single-character notation
- Fixed: Arguments given to niladic option-bundles not added to argv
- Fixed: Multiple bundles misinterpreted as argv elements
- Fixed: Only one option could be read with --equals=sign assignment
v1.0.1
This patch addresses a bug where variadic options ignored their argument lists, dropping everything from the result except the first value:
program --files 1 2 3 --name string
Expected: { files: ["1", "2", "3"], name: "string" }
Actual: { files: ["1"] }
Needless to say, this was a pretty stupid bug.