MythTV  master
mythexternrecorder_commandlineparser.cpp
Go to the documentation of this file.
1 #include <QString>
2 
5 
9 
11 {
12  return "mythexternrecorder is a go-between app which interfaces "
13  "between a recording device and mythbackend.";
14 }
15 
17 {
18  allowArgs();
19  addHelp();
21  addVersion();
22  addLogging();
23 
24  add("--conf", "conf", "", "Path to a configuration file in INI format.", "")
25  ->SetGroup("ExternalRecorder");
26 
27  add("--inputid", "inputid", "", "MythTV input this app is attached to.", "")
28  ->SetGroup("ExternalRecorder");
29 
30  add(QStringList{"--exec"},
31  "exec", false,
32  "Execute a program to retrieve Transport Stream from. "
33  "Data is expected to be on stdout.", "")
34  ->SetGroup("ExternalRecorder");
35 
36 }
MythExternRecorderCommandLineParser::MythExternRecorderCommandLineParser
MythExternRecorderCommandLineParser()
Definition: mythexternrecorder_commandlineparser.cpp:6
MythCommandLineParser
Parent class for defining application command line parsers.
Definition: mythcommandlineparser.h:116
MythExternRecorderCommandLineParser::LoadArguments
void LoadArguments(void) override
Definition: mythexternrecorder_commandlineparser.cpp:16
MythCommandLineParser::addVersion
void addVersion(void)
Canned argument definition for –version.
Definition: mythcommandlineparser.cpp:2552
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
MythCommandLineParser::add
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
Definition: mythcommandlineparser.cpp:1770
mythexternrecorder_commandlineparser.h
MythExternRecorderCommandLineParser::GetHelpHeader
QString GetHelpHeader(void) const override
Definition: mythexternrecorder_commandlineparser.cpp:10
MYTH_APPNAME_MYTHEXTERNRECORDER
static constexpr const char * MYTH_APPNAME_MYTHEXTERNRECORDER
Definition: mythcorecontext.h:37
MythCommandLineParser::allowArgs
void allowArgs(bool allow=true)
Specify that parser should allow and collect values provided independent of any keyword.
Definition: mythcommandlineparser.cpp:2480
mythcorecontext.h
MythCommandLineParser::addHelp
void addHelp(void)
Canned argument definition for –help.
Definition: mythcommandlineparser.cpp:2539
CommandLineArg::SetGroup
CommandLineArg * SetGroup(const QString &group)
Definition: mythcommandlineparser.h:30
MythCommandLineParser::addSettingsOverride
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
Definition: mythcommandlineparser.cpp:2603