Go to the documentation of this file.
22 <<
add(QStringList{
"-f",
"--file"},
24 "Specify file to operate on.",
"")
26 <<
add(
"--video",
"video",
"",
27 "Rebuild the seek table for a video (non-recording) file.",
"")
28 ->SetGroup(
"Input") );
31 <<
add(
"--gencutlist",
"gencutlist",
false,
32 "Copy the commercial skip list to the cutlist.",
"")
33 ->SetRemoved(
"mythcommflag is no longer used to manipulate\n"
34 " cut lists. Please use mythutil.",
"34")
35 <<
add(
"--clearcutlist",
"clearcutlist",
false,
36 "Clear the cutlist.",
"")
37 ->SetRemoved(
"mythcommflag is no longer used to manipulate\n"
38 " cut lists. Please use mythutil.",
"34")
39 <<
add(
"--clearskiplist",
"clearskiplist",
false,
40 "Clear the commercial skip list.",
"")
41 ->SetRemoved(
"mythcommflag is no longer used to manipulate\n"
42 " skip lists. Please use mythutil.",
"34")
43 <<
add(
"--getcutlist",
"getcutlist",
false,
44 "Display the current cutlist.",
"")
45 ->SetRemoved(
"mythcommflag is no longer used to manipulate\n"
46 " cut lists. Please use mythutil.",
"34")
47 <<
add(
"--getskiplist",
"getskiplist",
false,
48 "Display the current commercial skip list.",
"")
49 ->SetRemoved(
"mythcommflag is no longer used to manipulate\n"
50 " skip lists. Please use mythutil.",
"34")
51 <<
add(
"--setcutlist",
"setcutlist",
"",
52 "Set a new cutlist in the form:\n"
53 "#-#[,#-#]... (ie, 1-100,1520-3012,4091-5094)",
"")
54 ->SetRemoved(
"mythcommflag is no longer used to manipulate\n"
55 " cut lists. Please use mythutil.",
"34")
56 <<
add(
"--skipdb",
"skipdb",
false,
"",
57 "Intended for external 3rd party use.")
58 ->SetGroup(
"Advanced")
60 <<
add(
"--rebuild",
"rebuild",
false,
61 "Do not flag commercials, just rebuild the seektable.",
"")
62 ->SetGroup(
"Commflagging")
63 ->SetBlocks(
"commmethod") );
65 add(
"--method",
"commmethod",
"",
66 "Commercial flagging method[s] to employ:\n"
67 "off, blank, scene, blankscene, logo, all, "
68 "d2, d2_logo, d2_blank, d2_scene, d2_all",
"")
70 add(
"--outputmethod",
"outputmethod",
"",
71 "Format of output written to outputfile, essentials, full.",
"")
73 add(
"--queue",
"queue",
false,
74 "Insert flagging job into the JobQueue, rather than "
75 "running flagging in the foreground.",
"");
76 add(
"--noprogress",
"noprogress",
false,
77 "Don't print progress on stdout.",
"")
79 add(
"--force",
"force",
false,
80 "Force operation, even if program appears to be in use.",
"")
82 add(
"--dontwritetodb",
"dontwritedb",
false,
"",
83 "Intended for external 3rd party use.")
85 add(
"--onlydumpdb",
"dumpdb",
false,
"",
"?")
87 add(
"--outputfile",
"outputfile",
"",
88 "File to write commercial flagging output [debug].",
"")
90 add(
"--dry-run",
"dryrun",
false,
91 "Don't actually queue operation, just list what would be done",
"");
93 add(
"--sleep",
"fullspeed",
false,
"",
"")
94 ->
SetRemoved(
"If your system is incapable of performing\n"
95 " commercial detection without disrupting other\n"
96 " operations, use the jobqueue execution window\n"
97 " settings to ensure tasks do not run during the\n"
98 " time you may be running such other operations.",
100 add(
"--nopercentage",
"nopercentage",
false,
"",
"")
101 ->
SetRemoved(
"Use --noprogress instead.",
"0.25");
102 add(
"--very-quiet",
"veryquiet",
false,
"",
"")
103 ->
SetRemoved(
"Use --quiet instead. Can be used multiple times\n"
104 " for increased effect.",
"0.25");
105 add(
"--all",
"runall",
false,
"",
"")
106 ->
SetRemoved(
"Use --queue with no content definition for\n"
107 " similar behavior. Will queue all tasks to be\n"
108 " run through the jobqueue, rather than run them\n"
109 " all synchronously within this instance.",
"0.25");
110 add(
"--allstart",
"allstart",
"",
"",
"")
111 ->
SetRemoved(
"and is no longer available in this version.",
"0.25");
112 add(
"--allend",
"allend",
"",
"",
"")
113 ->
SetRemoved(
"and is no longer available in this version.",
"0.25");
114 add(
"--hogcpu",
"hogcpu",
"",
"",
"")
115 ->
SetRemoved(
"and is no longer available in this version.",
"0.25");
MythCommFlagCommandLineParser()
static void AllowOneOf(const QList< CommandLineArg * > &args)
Mark a list of arguments as mutually exclusive.
Parent class for defining application command line parsers.
void addVersion(void)
Canned argument definition for –version.
void addRecording(void)
Canned argument definition for –chanid and –starttime.
void addLogging(const QString &defaultVerbosity="general", LogLevel_t defaultLogLevel=LOG_INFO)
Canned argument definition for all logging options, including –verbose, –logpath, –quiet,...
CommandLineArg * SetRemoved(QString remstr="", QString remver="")
Set option as removed.
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
static constexpr const char * MYTH_APPNAME_MYTHCOMMFLAG
void addHelp(void)
Canned argument definition for –help.
Definition for a single command line option.
CommandLineArg * SetGroup(const QString &group)
void addJob(void)
Canned argument definition for –jobid.
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
void LoadArguments(void) override