On 08/16/12 15:30, Chip Childers wrote:
Hi all,
Hi Chip
<snip>
Is there a specific method you would like me to follow to get this fix
(or something more appropriate) into the codebase?
Committed. Many thanks.
Robert
-chip
Index: apache-whisker-cli/src/main/java/org/apache/creadur/whisker/cli/Main.java
===================================================================
--- apache-whisker-cli/src/main/java/org/apache/creadur/whisker/cli/Main.java
(revision
1373827)
+++ apache-whisker-cli/src/main/java/org/apache/creadur/whisker/cli/Main.java
(working
copy)
@@ -188,9 +188,13 @@
*/
private boolean printHelp(String[] args) throws ParseException {
final CommandLineOption help = CommandLineOption.PRINT_HELP;
- return help.isSetOn(
- parser().parse(new Options().addOption(
- help.create()), args));
+ try {
+ return help.isSetOn(
+ parser().parse(new Options().addOption(
+ help.create()), args));
+ } catch (ParseException e) {
+ return false;
+ }
}
/**