Project

Profile

Help

Bad param=value pair on command line

Added by Anonymous over 19 years ago

Legacy ID: #3024062 Legacy Poster: Kevin Rodgers (notorious_kev)

I'm getting the "Bad param=value pair on command line" error message due to a bug in my driver script, but it would be a lot easier to diagnose if the message included the argument that triggered it. Here's a patch: *** net/sf/saxon/Transform.java.origTue Jan 11 21:00:56 2005 --- net/sf/saxon/Transform.javaTue Mar 1 10:31:43 2005 *************** *** 365,371 **** for (int p=i; p<args.length; p++) { String arg = args[p]; int eq = arg.indexOf("="); ! if (eq<1 || eq>=arg.length()-1) badUsage(name, "Bad param=value pair on command line"); parameterList.add(arg); } --- 365,371 ---- for (int p=i; p<args.length; p++) { String arg = args[p]; int eq = arg.indexOf("="); ! if (eq<1 || eq>=arg.length()-1) badUsage(name, "Bad param=value pair on command line: " + arg); parameterList.add(arg); }


Replies (1)

RE: Bad param=value pair on command line - Added by Anonymous over 19 years ago

Legacy ID: #3024147 Legacy Poster: Michael Kay (mhkay)

Thanks for the suggestion. Michael Kay

    (1-1/1)

    Please register to reply