mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Fix 'Restart' RPC command (#894)
This commit is contained in:
@@ -71,6 +71,28 @@ public:
|
||||
return *option;
|
||||
}
|
||||
|
||||
template<class OptionT>
|
||||
OptionT &addHidden(
|
||||
const char shortOption,
|
||||
const QString longOption,
|
||||
const QString description,
|
||||
const QString default_ = QString())
|
||||
{
|
||||
OptionT * option = new OptionT(
|
||||
_getNames(shortOption, longOption),
|
||||
_getDescription(description, default_),
|
||||
longOption,
|
||||
default_);
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 8, 0))
|
||||
option->setFlags(QCommandLineOption::HiddenFromHelp);
|
||||
#else
|
||||
option->setHidden(true);
|
||||
#endif
|
||||
|
||||
addOption(option);
|
||||
return *option;
|
||||
}
|
||||
|
||||
Parser(QString description=QString())
|
||||
{
|
||||
if(description.size())setApplicationDescription(description);
|
||||
|
Reference in New Issue
Block a user