If the command line option parsing code chokes on something, write
a message to the console what the problematic token was.
This commit is contained in:
parent
84c9892a6c
commit
31ccc12e5b
1 changed files with 3 additions and 1 deletions
|
@ -143,8 +143,10 @@ import org.apache.xmlrpc.*;
|
||||||
} else if (args[i].equals ("-i") && i+1<args.length) {
|
} else if (args[i].equals ("-i") && i+1<args.length) {
|
||||||
// eat away the -i parameter which is meant for helma.main.launcher.Main
|
// eat away the -i parameter which is meant for helma.main.launcher.Main
|
||||||
i++;
|
i++;
|
||||||
} else
|
} else {
|
||||||
|
System.err.println ("Unknown command line token: "+args[i]);
|
||||||
usageError = true;
|
usageError = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// get main property file from home dir or vice versa, depending on what we have.
|
// get main property file from home dir or vice versa, depending on what we have.
|
||||||
|
|
Loading…
Add table
Reference in a new issue