Hi John,

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.

So I have fixed this bug in the processArgs() method in the Parser class.

Please let me know if you have questions about it.

Thanks,
Peter Maddocks
HP NSS NAS Software Design Engineer
[EMAIL PROTECTED]
 


Attachment: Parser.java.patch
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to