MythTV
master
mythtv
programs
mythlcdserver
mythlcdserver_commandlineparser.cpp
Go to the documentation of this file.
1
#include <QString>
2
3
#include "
libmythbase/mythcorecontext.h
"
4
#include "
mythlcdserver_commandlineparser.h
"
5
6
MythLCDServerCommandLineParser::MythLCDServerCommandLineParser
() :
7
MythCommandLineParser
(
MYTH_APPNAME_MYTHLCDSERVER
)
8
{
MythLCDServerCommandLineParser::LoadArguments
(); }
9
10
void
MythLCDServerCommandLineParser::LoadArguments
(
void
)
11
{
12
addHelp
();
13
addVersion
();
14
addDaemon
();
15
addLogging
();
16
//addPIDFile();
17
18
add
(QStringList{
"-p"
,
"--port"
},
"port"
, 6545,
"listen port"
,
19
"This is the port MythLCDServer will listen on for events."
);
20
add
(QStringList{
"-m"
,
"--startupmessage"
},
"message"
,
""
,
21
"Message to display on startup."
,
""
);
22
add
(QStringList{
"-t"
,
"--messagetime"
},
"messagetime"
, 30,
23
"Message display duration (in seconds)"
,
""
);
24
add
(QStringList{
"-x"
,
"--debuglevel"
},
"debug"
, 0,
25
"debug verbosity"
,
"Control debugging verbosity, values from 0-10"
);
26
27
add
(
"--nodaemon"
,
"nodaemon"
,
false
,
""
,
""
)
28
->
SetRemoved
(
"This is the default behavior. No need for an argument."
,
29
"0.25"
);
30
}
31
MYTH_APPNAME_MYTHLCDSERVER
static constexpr const char * MYTH_APPNAME_MYTHLCDSERVER
Definition:
mythcorecontext.h:30
MythCommandLineParser
Parent class for defining application command line parsers.
Definition:
mythcommandlineparser.h:116
MythCommandLineParser::addVersion
void addVersion(void)
Canned argument definition for –version.
Definition:
mythcommandlineparser.cpp:2552
MythLCDServerCommandLineParser::MythLCDServerCommandLineParser
MythLCDServerCommandLineParser()
Definition:
mythlcdserver_commandlineparser.cpp:6
MythLCDServerCommandLineParser::LoadArguments
void LoadArguments(void) override
Definition:
mythlcdserver_commandlineparser.cpp:10
mythlcdserver_commandlineparser.h
MythCommandLineParser::addLogging
void addLogging(const QString &defaultVerbosity="general", LogLevel_t defaultLogLevel=LOG_INFO)
Canned argument definition for all logging options, including –verbose, –logpath, –quiet,...
Definition:
mythcommandlineparser.cpp:2656
CommandLineArg::SetRemoved
CommandLineArg * SetRemoved(QString remstr="", QString remver="")
Set option as removed.
Definition:
mythcommandlineparser.cpp:815
MythCommandLineParser::add
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
Definition:
mythcommandlineparser.cpp:1770
mythcorecontext.h
MythCommandLineParser::addHelp
void addHelp(void)
Canned argument definition for –help.
Definition:
mythcommandlineparser.cpp:2539
MythCommandLineParser::addDaemon
void addDaemon(void)
Canned argument definition for –daemon.
Definition:
mythcommandlineparser.cpp:2591
Generated on Mon Nov 25 2024 03:16:20 for MythTV by
1.8.17