Add text about using double quotes to surround console command arguments containing spaces to "help" text.

e.g. show object name "My long object name"
0.7.4.1
Justin Clark-Casey (justincc) 2012-04-28 00:29:08 +01:00
parent 2bad430ed8
commit 133f05dc41
1 changed files with 8 additions and 2 deletions

View File

@ -79,7 +79,11 @@ namespace OpenSim.Framework.Console
public List<CommandDelegate> fn;
}
public const string GeneralHelpText = "For more information, type 'help <item>' where <item> is one of the following categories:";
public const string GeneralHelpText
= "To enter an argument that contains spaces, surround the argument with double quotes.\nFor example, show object name \"My long object name\"\n";
public const string ItemHelpText
= "For more information, type 'help <item>' where <item> is one of the following:";
/// <value>
/// Commands organized by keyword in a tree
@ -108,7 +112,9 @@ namespace OpenSim.Framework.Console
// General help
if (helpParts.Count == 0)
{
help.Add(""); // Will become a newline.
help.Add(GeneralHelpText);
help.Add(ItemHelpText);
help.AddRange(CollectModulesHelp(tree));
}
else
@ -132,7 +138,7 @@ namespace OpenSim.Framework.Console
// Check modules first to see if we just need to display a list of those commands
if (TryCollectModuleHelp(originalHelpRequest, help))
{
help.Insert(0, GeneralHelpText);
help.Insert(0, ItemHelpText);
return help;
}