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