MythTV  master
mythpreviewgen/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  addHelp();
13  addVersion();
14  addRecording();
15  addLogging();
16 
17  add("--seconds", "seconds", 0LL, "Number of seconds into video to take preview image.", "");
18  add("--frame", "frame", 0LL, "Number of frames into video to take preview image.", "");
19  add("--size", "size", QSize(0,0), "Dimensions of preview image.", "");
20  add("--infile", "inputfile", "", "Input video for preview generation.", "");
21  add("--outfile", "outputfile", "", "Optional output file for preview generation.", "");
22 }
23 
24 
commandlineparser.h
MythCommandLineParser
Parent class for defining application command line parsers.
Definition: mythcommandlineparser.h:116
MythPreviewGeneratorCommandLineParser::MythPreviewGeneratorCommandLineParser
MythPreviewGeneratorCommandLineParser()
Definition: mythpreviewgen/commandlineparser.cpp:6
MythCommandLineParser::addVersion
void addVersion(void)
Canned argument definition for –version.
Definition: mythcommandlineparser.cpp:2288
MythPreviewGeneratorCommandLineParser::LoadArguments
void LoadArguments(void) override
Definition: mythpreviewgen/commandlineparser.cpp:10
MYTH_APPNAME_MYTHPREVIEWGEN
#define MYTH_APPNAME_MYTHPREVIEWGEN
Definition: mythcorecontext.h:26
MythCommandLineParser::addRecording
void addRecording(void)
Canned argument definition for –chanid and –starttime.
Definition: mythcommandlineparser.cpp:2355
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
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