Add -h key to all deal tree

This commit is contained in:
Vladimir N. Korotenko
2025-11-17 18:28:14 +03:00
parent 329b9a9c98
commit dcbb25b5ae

View File

@@ -65,15 +65,15 @@ Deals::Deals(const InputParser& parser, const bool isRussian, const string addre
int Deals::Process() int Deals::Process()
{ {
if (parser.cmdOptionExists("deal") && this->parser.cmdOptionExists("create") && this->parser.cmdOptionExists("--help")) if (parser.cmdOptionExists("deal") && this->parser.cmdOptionExists("create") && (this->parser.cmdOptionExists("--help") || parser.cmdOptionExists("-h")))
return this->HelpCreate(); return this->HelpCreate();
if (parser.cmdOptionExists("deal") && this->parser.cmdOptionExists("status") && this->parser.cmdOptionExists("--help")) if (parser.cmdOptionExists("deal") && this->parser.cmdOptionExists("status") && (this->parser.cmdOptionExists("--help") || parser.cmdOptionExists("-h")))
return this->HelpDealStatus(); return this->HelpDealStatus();
if (parser.cmdOptionExists("deal") && this->parser.cmdOptionExists("complete") && this->parser.cmdOptionExists("--help")) if (parser.cmdOptionExists("deal") && this->parser.cmdOptionExists("complete") && (this->parser.cmdOptionExists("--help") || parser.cmdOptionExists("-h")))
return this->HelpDealComplete(); return this->HelpDealComplete();
if (parser.cmdOptionExists("deal") && this->parser.cmdOptionExists("cancel") && this->parser.cmdOptionExists("--help")) if (parser.cmdOptionExists("deal") && this->parser.cmdOptionExists("cancel") && (this->parser.cmdOptionExists("--help") || parser.cmdOptionExists("-h")))
return this->HelpDealCancel(); return this->HelpDealCancel();
if (parser.cmdOptionExists("deal") && this->parser.cmdOptionExists("negative") && this->parser.cmdOptionExists("--help")) if (parser.cmdOptionExists("deal") && this->parser.cmdOptionExists("negative") && (this->parser.cmdOptionExists("--help") || parser.cmdOptionExists("-h")))
return this->HelpDealNegative(); return this->HelpDealNegative();
return Update(); return Update();