Add ICommands.HasCommand() method so that we can detect whether a command has already been registered without needing to also run it

This commit is contained in:
Justin Clark-Casey (justincc)
2014-07-18 22:27:39 +01:00
parent f0853139d5
commit 9be935ac6d
4 changed files with 37 additions and 18 deletions

View File

@@ -82,6 +82,7 @@ namespace OpenSim.Framework.Console
public void AddCommand(string module, bool shared, string command, string help, string longhelp, CommandDelegate fn) {}
public void AddCommand(string module, bool shared, string command, string help, string longhelp, string descriptivehelp, CommandDelegate fn) {}
public string[] FindNextOption(string[] cmd, bool term) { return null; }
public bool HasCommand(string cmd) { return false; }
public string[] Resolve(string[] cmd) { return null; }
public XmlElement GetXml(XmlDocument doc) { return null; }
}