creadur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Burrell Donkin <rdon...@apache.org>
Subject Re: Issue with the Whisker CLI
Date Sat, 18 Aug 2012 14:26:22 GMT
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;
> +        }
>       }
>
>       /**


Mime
View raw message