mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 08:46:19 +00:00
Merge with develop
This commit is contained in:
parent
3b23cddbdb
commit
c1439da922
1 changed files with 1 additions and 8 deletions
|
@ -418,7 +418,7 @@ void CCmdArgs::displayHelp()
|
||||||
|
|
||||||
if (!_Description.empty())
|
if (!_Description.empty())
|
||||||
{
|
{
|
||||||
printf("\n%s", _Description.c_str());
|
printf("\n%s\n", _Description.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\nWhere options are:\n");
|
printf("\nWhere options are:\n");
|
||||||
|
@ -443,7 +443,6 @@ void CCmdArgs::displayHelp()
|
||||||
if (!arg.helpName.empty())
|
if (!arg.helpName.empty())
|
||||||
{
|
{
|
||||||
syntaxes.push_back(toString("-%s <%s>", arg.shortName.c_str(), arg.helpName.c_str()));
|
syntaxes.push_back(toString("-%s <%s>", arg.shortName.c_str(), arg.helpName.c_str()));
|
||||||
syntaxes.push_back(toString("-%s<%s>", arg.shortName.c_str(), arg.helpName.c_str()));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -459,12 +458,6 @@ void CCmdArgs::displayHelp()
|
||||||
// display first syntax for long argument, --arg <value>
|
// display first syntax for long argument, --arg <value>
|
||||||
syntaxes.push_back(toString("--%s <%s>", arg.longName.c_str(), arg.helpName.c_str()));
|
syntaxes.push_back(toString("--%s <%s>", arg.longName.c_str(), arg.helpName.c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!arg.helpName.empty())
|
|
||||||
{
|
|
||||||
// display second syntax for long argument, --arg=<value>
|
|
||||||
syntaxes.push_back(toString("--%s=<%s>", arg.longName.c_str(), arg.helpName.c_str()));
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
syntaxes.push_back(toString("--%s", arg.longName.c_str()));
|
syntaxes.push_back(toString("--%s", arg.longName.c_str()));
|
||||||
|
|
Loading…
Reference in a new issue