-
Notifications
You must be signed in to change notification settings - Fork 343
/
commandlineparser.cpp
38 lines (30 loc) · 1.13 KB
/
commandlineparser.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using namespace std;
#include <QString>
#include "mythcorecontext.h"
#include "commandlineparser.h"
MythFrontendCommandLineParser::MythFrontendCommandLineParser() :
MythCommandLineParser(MYTH_APPNAME_MYTHFRONTEND)
{ LoadArguments(); }
void MythFrontendCommandLineParser::LoadArguments(void)
{
addHelp();
addVersion();
addWindowed(false);
addSettingsOverride();
addGeometry();
addDisplay();
addUPnP();
addLogging();
add(QStringList( QStringList() << "-r" << "--reset" ), "reset", false,
"Resets appearance, settings, and language.", "");
add(QStringList( QStringList() << "-p" << "--prompt" ), "prompt", false,
"Always prompt for backend selection.", "");
add(QStringList( QStringList() << "-d" << "--disable-autodiscovery" ),
"noautodiscovery", false, "Prevent frontend from using UPnP autodiscovery.", "");
}
QString MythFrontendCommandLineParser::GetHelpHeader(void) const
{
return "MythFrontend is the primary playback application for MythTV. It \n"
"is used for playback of scheduled and live recordings, and management \n"
"of recording rules.";
}