commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MADDOCKS,PETE (HP-Loveland,ex1)" <peter.maddo...@hp.com>
Subject [CLI] [patch] Parser bug
Date Mon, 30 Sep 2002 16:30:06 GMT
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
peter_maddocks@hp.com
 



Mime
View raw message