|
|
|
@ -261,7 +261,12 @@ static std::string getScriptHelp(std::string path, std::string helpprefix)
|
|
|
|
|
std::string help;
|
|
|
|
|
if (getline(script, help) &&
|
|
|
|
|
help.substr(0,helpprefix.length()) == helpprefix)
|
|
|
|
|
return help.substr(helpprefix.length());
|
|
|
|
|
{
|
|
|
|
|
help = help.substr(helpprefix.length());
|
|
|
|
|
while (help.size() && help[0] == ' ')
|
|
|
|
|
help = help.substr(1);
|
|
|
|
|
return help;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return "No help available.";
|
|
|
|
|