Skip to content

Releases: silentsoft/arguments-parser

v2.0.1

23 Aug 02:23
028150b
Compare
Choose a tag to compare

Bug Fixes

  • Fixed an issue where multiple values with the same key were not being parsed correctly.

v2.0.0

29 Jan 14:45
0e813f8
Compare
Choose a tag to compare

Breaking Changes

public static void main(String[] args) throws Exception {
    Arguments arguments = parseArguments(args);
}

private static Arguments parseArguments(String[] args) throws InvalidArgumentsException {
    return Arguments.parser(args)
        .help(arguments -> {
            System.out.println("Some Help Message");
            System.exit(0);
        })
        .validate(arguments -> {
            // some validation
            return true;
        })
    .parse();
}

Deprecated APIs

  • ArgumentsParser.parse(args)
  • ArgumentsParser.parse(args, validator)

New APIs for Arguments class

  • String getValue(String key)
  • String getValue(String key, String defaultValue)
  • List<String> getValues(String key)
  • List<String> getValues(String key, List<String> defaultValues)
  • boolean requiresHelp()

v1.1.0

10 Jul 00:31
902a15b
Compare
Choose a tag to compare

Fix identity issue and missing key problem

v1.0.0

08 Jul 18:32
Compare
Choose a tag to compare

The first proper release