mirror of https://github.com/apache/lucene.git
ingore case in the names of commands (Search == search etc.)
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@490513 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c4193343bf
commit
67399fdd8d
|
@ -283,7 +283,7 @@ public class Lucli {
|
||||||
}
|
}
|
||||||
|
|
||||||
private int getCommandId(String name, int params) {
|
private int getCommandId(String name, int params) {
|
||||||
name.toLowerCase(); //treat uppercase and lower case commands the same
|
name = name.toLowerCase(); //treat uppercase and lower case commands the same
|
||||||
Command command = (Command) commandMap.get(name);
|
Command command = (Command) commandMap.get(name);
|
||||||
if (command == null) {
|
if (command == null) {
|
||||||
return(UNKOWN);
|
return(UNKOWN);
|
||||||
|
|
Loading…
Reference in New Issue