Skip to content

v1.1.17

Choose a tag to compare

@jdwx jdwx released this 30 Jan 04:27
· 22 commits to main since this release

Added separate classes to streamline processing two common types of optional command line flags, with or without associated values.

The Option class defines a single option and can be set from an Arguments object to handle and remove any matching references to that option. This can be used directly when there are just one or two simple options to process.

The Options class collects several Option objects together and provides an ArrayAccess interface to IParameter instances. This should be used when there are many options, the same set of options used in multiple places, or if you want to easily get a provided option value as (e.g.) an integer.