MythTV  master
mythexternrecorder/commandlineparser.cpp
Go to the documentation of this file.
1 #include <QString>
2 
3 #include "mythcorecontext.h"
4 #include "commandlineparser.h"
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 }
commandlineparser.h
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:2288
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:2385
MythExternRecorderCommandLineParser::GetHelpHeader
QString GetHelpHeader(void) const override
Definition: mythexternrecorder/commandlineparser.cpp:10
MythCommandLineParser::allowArgs
void allowArgs(bool allow=true)
Specify that parser should allow and collect values provided independent of any keyword.
Definition: mythcommandlineparser.cpp:2222
MythCommandLineParser::add
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
Definition: mythcommandlineparser.h:145
mythcorecontext.h
MythCommandLineParser::addHelp
void addHelp(void)
Canned argument definition for –help.
Definition: mythcommandlineparser.cpp:2275
CommandLineArg::SetGroup
CommandLineArg * SetGroup(const QString &group)
Definition: mythcommandlineparser.h:29
MythCommandLineParser::addSettingsOverride
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
Definition: mythcommandlineparser.cpp:2339
MYTH_APPNAME_MYTHEXTERNRECORDER
#define MYTH_APPNAME_MYTHEXTERNRECORDER
Definition: mythcorecontext.h:37