00001
00002 using namespace std;
00003
00004 #include <QString>
00005
00006 #include "mythcorecontext.h"
00007 #include "commandlineparser.h"
00008
00009 MythPreviewGeneratorCommandLineParser::MythPreviewGeneratorCommandLineParser() :
00010 MythCommandLineParser(MYTH_APPNAME_MYTHPREVIEWGEN)
00011 { LoadArguments(); }
00012
00013 void MythPreviewGeneratorCommandLineParser::LoadArguments(void)
00014 {
00015 addHelp();
00016 addVersion();
00017 addRecording();
00018 addLogging();
00019
00020 add("--seconds", "seconds", 0LL, "Number of seconds into video to take preview image.", "");
00021 add("--frame", "frame", 0LL, "Number of frames into video to take preview image.", "");
00022 add("--size", "size", QSize(0,0), "Dimensions of preview image.", "");
00023 add("--infile", "inputfile", "", "Input video for preview generation.", "");
00024 add("--outfile", "outputfile", "", "Optional output file for preview generation.", "");
00025 }
00026
00027