one version directly uses the recommended ArgsException handling!
try {
ArgsParser.parse(args);
} catch (CalledForHelpNotification help) {
System.out.println(help.getMessage());
System.exit(0);
} catch (ArgsException e) {
System.out.println(e.getMessage());
System.exit(1);
}
so the user don't has to handle the exceptions
while the other method will not implement this but will throw the ArgsExceptions and asks the programmer to handle the code!
one version directly uses the recommended ArgsException handling!
so the user don't has to handle the exceptions
while the other method will not implement this but will throw the ArgsExceptions and asks the programmer to handle the code!