MythTV  master
mythccextractor/commandlineparser.cpp
Go to the documentation of this file.
1 #include "commandlineparser.h"
2 #include "mythcorecontext.h"
3 
6 {
8 }
9 
11 {
12  addHelp();
14  addVersion();
15  addLogging("none", LOG_ERR);
16  add(QStringList{"-d", "--destdir"}, "destdir", "",
17  "destination directory", "");
18  add(QStringList{"-i", "--infile"}, "inputfile", "",
19  "input file", "");
20 }
21 
23 {
24  return
25  "This is a command for generating srt files for\n"
26  "DVB and ATSC recordings.";
27 }
commandlineparser.h
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:2283
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:2380
MythCCExtractorCommandLineParser::MythCCExtractorCommandLineParser
MythCCExtractorCommandLineParser()
Definition: mythccextractor/commandlineparser.cpp:4
MYTH_APPNAME_MYTHCCEXTRACTOR
#define MYTH_APPNAME_MYTHCCEXTRACTOR
Definition: mythcorecontext.h:24
MythCCExtractorCommandLineParser::LoadArguments
void LoadArguments(void) override
Definition: mythccextractor/commandlineparser.cpp:10
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:2270
MythCCExtractorCommandLineParser::GetHelpHeader
QString GetHelpHeader(void) const override
Definition: mythccextractor/commandlineparser.cpp:22
MythCommandLineParser::addSettingsOverride
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
Definition: mythcommandlineparser.cpp:2334