commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CLI-39) MissingArgumentException not being caught.
Date Mon, 10 Jul 2006 05:39:34 GMT
     [ http://issues.apache.org/jira/browse/CLI-39?page=all ]

Henri Yandell updated CLI-39:
-----------------------------

    Version:     (was: 1.0 Beta 2)

> MissingArgumentException not being caught.
> ------------------------------------------
>
>          Key: CLI-39
>          URL: http://issues.apache.org/jira/browse/CLI-39
>      Project: Commons CLI
>         Type: Bug

>  Environment: Operating System: other
> Platform: Other
>     Reporter: John Keyes

>
> Reported on behalf of Pete Maddocks.
> We ran across a bug in the case where a missing required argument for an
> option was only caught if the option was at the end of command line.
> So for the command:
> -----------------
> SYNOPSIS
> ndmp [ options ]
> -o, --old-password oldPassword
> Use this option to specify the old password. 
> -n, --new-password newPassword
> Use this option to specify the new password
> -----------------
> 1. If the user types:
>    ndmp -o oldpassword -n 
>    Then the Parser class correctly throws a MissingArgumentException.
> 2. However, if the user types:
>    ndmp -o -n newpassword
>    Then the Parser class does not throw the Missing ArgumentException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message