protected virtual string GetHelpString(ArgumentDescription[] commands)
{
StringBuilder text = new StringBuilder();
text.Append("These are the supported arguments:\r\n");
for (int ii = 0; ii < commands.Length; ii++)
{
ArgumentDescription command = commands[ii];
text.Append("\r\n");
if (command.ValueRequired)
{
text.AppendFormat("{0}:<value> {1}", command.Name, command.Description);
}
else if (command.ValueAllowed)
{
text.AppendFormat("{0}[:<value>] {1}", command.Name, command.Description);
}
else
{
text.AppendFormat("{0} {1}", command.Name, command.Description);
}
}
text.Append("\r\n");
return text.ToString();
}