Releases: silentsoft/arguments-parser
Releases · silentsoft/arguments-parser
v2.0.1
v2.0.0
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
Fix identity issue and missing key problem
v1.0.0
The first proper release