MythTV
master
mythtv
programs
mythccextractor
mythccextractor_commandlineparser.cpp
Go to the documentation of this file.
1
#include "
libmythbase/mythcorecontext.h
"
2
#include "
mythccextractor_commandlineparser.h
"
3
4
MythCCExtractorCommandLineParser::MythCCExtractorCommandLineParser
() :
5
MythCommandLineParser
(
MYTH_APPNAME_MYTHCCEXTRACTOR
)
6
{
7
MythCCExtractorCommandLineParser::LoadArguments
();
8
}
9
10
void
MythCCExtractorCommandLineParser::LoadArguments
(
void
)
11
{
12
addHelp
();
13
addSettingsOverride
();
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
22
QString
MythCCExtractorCommandLineParser::GetHelpHeader
(
void
)
const
23
{
24
return
25
"This is a command for generating srt files for\n"
26
"DVB and ATSC recordings."
;
27
}
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
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
MYTH_APPNAME_MYTHCCEXTRACTOR
static constexpr const char * MYTH_APPNAME_MYTHCCEXTRACTOR
Definition:
mythcorecontext.h:25
MythCommandLineParser::add
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
Definition:
mythcommandlineparser.cpp:1770
MythCCExtractorCommandLineParser::MythCCExtractorCommandLineParser
MythCCExtractorCommandLineParser()
Definition:
mythccextractor_commandlineparser.cpp:4
MythCCExtractorCommandLineParser::LoadArguments
void LoadArguments(void) override
Definition:
mythccextractor_commandlineparser.cpp:10
mythcorecontext.h
MythCommandLineParser::addHelp
void addHelp(void)
Canned argument definition for –help.
Definition:
mythcommandlineparser.cpp:2539
mythccextractor_commandlineparser.h
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:2603
Generated on Sun Jan 19 2025 03:17:00 for MythTV by
1.8.17