Releases: fulcrumgenomics/sopt
Release 1.1.0
Release 1.0.0
The big change with this release is the addition of cross-build support for 2.12 and 2.13, while dropping support for 2.11.
In addition there is one minor feature - enumeratum-style enums will now print their options in the order in which they are declared when rendering usage.
Release 0.7.0
Minor release that gets a major version bump because:
- Build has been updated to use latest scala point releases to ensure JDK 9 and 10 runtime compatibility
Release 0.6.1
Release 0.5.0
Minor release with the following improvements:
- Possible values for enums are now printed in green and not the terminal default color
- Better error messages are produced if an option value cannot be converted to the required type
Release 0.4.0
Minor release with the following changes:
- Upgraded
commons
dependencies to allow arguments of type Char. - Fixed use of short names in error message when mutually exclusive options are used.
Release 0.3.1
Release 0.3.1 is a bugfix release that includes the following changes:
- Non
@arg
-annotated constructor parameters are no longer exposed via theSopt
API
Release 0.3.0
Version 0.3.0 introduces the idea of groups of options. The @arg()
annotation has a new element, group
which allows options to be grouped together. The default display now shows options grouped by group
instead of by required/optional. Required/optional status is shows via color and presence/absence of the string [Optional]
Release 0.2.0
The first release of our scala command line parsing API.
The main API can be seen in the following methods in com.fulcrumgenomics.sopt.Sopt
:
find
: finds classes that extend the given type within the specified package; used to find all command line classes to be exposed on the command line.parseCommand
: parses a command line for a single command.parseCommandAndSubCommand
: parses a command line for a command/sub-command pair.
See the README for a more detailed example of the usage of these methods.
The sopt project was previously a sub-project of dagr where it was used extensively before becoming a standalone project.