mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 02:05:34 +08:00
Change the command parser and resolver to be able to disambiguate commands
that are a prefix of another command. Fixes "terrain load" Fixes Mantis #3123
This commit is contained in:
@@ -238,6 +238,12 @@ namespace OpenSim.Framework.Console
|
||||
|
||||
foreach (string opt in current.Keys)
|
||||
{
|
||||
if (remaining > 0 && opt == s)
|
||||
{
|
||||
found.Clear();
|
||||
found.Add(opt);
|
||||
break;
|
||||
}
|
||||
if (opt.StartsWith(s))
|
||||
{
|
||||
found.Add(opt);
|
||||
@@ -301,6 +307,12 @@ namespace OpenSim.Framework.Console
|
||||
|
||||
foreach (string opt in current.Keys)
|
||||
{
|
||||
if (opt == s)
|
||||
{
|
||||
found.Clear();
|
||||
found.Add(opt);
|
||||
break;
|
||||
}
|
||||
if (opt.StartsWith(s))
|
||||
{
|
||||
found.Add(opt);
|
||||
|
||||
Reference in New Issue
Block a user