You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/10/08 22:54:41 UTC

DO NOT REPLY [Bug 13425] New: - MissingArgumentException not being caught.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13425>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13425

MissingArgumentException not being caught.

           Summary: MissingArgumentException not being caught.
           Product: Commons
           Version: 1.0 Beta 2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: CLI
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jbjk@mac.com


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.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>