diff --git a/mythtv/programs/mythutil/commandlineparser.cpp b/mythtv/programs/mythutil/commandlineparser.cpp
index 141235d..d540223 100644
a
|
b
|
void MythUtilCommandLineParser::LoadArguments(void) |
40 | 40 | << add("--gencutlist", "gencutlist", false, |
41 | 41 | "Copy the commercial skip list to the cutlist.", "") |
42 | 42 | ->SetGroup("Recording Markup") |
43 | | ->SetRequiredChild(QStringList("chanid") << "starttime") |
44 | 43 | << add("--getcutlist", "getcutlist", false, |
45 | 44 | "Display the current cutlist.", "") |
46 | 45 | ->SetGroup("Recording Markup") |
47 | | ->SetRequiredChild(QStringList("chanid") << "starttime") |
48 | 46 | << add("--setcutlist", "setcutlist", "", |
49 | 47 | "Set a new cutlist in the form:\n" |
50 | 48 | "#-#[,#-#]... (ie, 1-100,1520-3012,4091-5094)", "") |
51 | 49 | ->SetGroup("Recording Markup") |
52 | | ->SetRequiredChild(QStringList("chanid") << "starttime") |
53 | 50 | << add("--clearcutlist", "clearcutlist", false, |
54 | 51 | "Clear the cutlist.", "") |
55 | 52 | ->SetGroup("Recording Markup") |
56 | | ->SetRequiredChild(QStringList("chanid") << "starttime") |
57 | 53 | << add("--getskiplist", "getskiplist", false, |
58 | 54 | "Display the current commercial skip list.", "") |
59 | 55 | ->SetGroup("Recording Markup") |
60 | | ->SetRequiredChild(QStringList("chanid") << "starttime") |
61 | 56 | << add("--setskiplist", "setskiplist", "", |
62 | 57 | "Set a new commercial skip list in the form:\n" |
63 | 58 | "#-#[,#-#]... (ie, 1-100,1520-3012,4091-5094)", "") |
64 | 59 | ->SetGroup("Recording Markup") |
65 | | ->SetRequiredChild(QStringList("chanid") << "starttime") |
66 | 60 | << add("--clearskiplist", "clearskiplist", false, |
67 | 61 | "Clear the commercial skip list.", "") |
68 | 62 | ->SetGroup("Recording Markup") |
69 | | ->SetRequiredChild(QStringList("chanid") << "starttime") |
70 | 63 | << add("--clearseektable", "clearseektable", false, |
71 | 64 | "Clear the seek table.", "") |
72 | 65 | ->SetGroup("Recording Markup") |
73 | | ->SetRequiredChild(QStringList("chanid") << "starttime") |
74 | 66 | |
75 | 67 | // backendutils.cpp |
76 | 68 | << add("--resched", "resched", false, |
… |
… |
void MythUtilCommandLineParser::LoadArguments(void) |
117 | 109 | "metadata, userjob1, userjob2, userjob3, userjob4) to run " |
118 | 110 | "for the recording with the given chanid and starttime.") |
119 | 111 | ->SetGroup("JobQueue") |
120 | | ->SetRequiredChild("chanid") |
121 | | ->SetRequiredChild("starttime") |
122 | 112 | |
123 | 113 | // messageutils.cpp |
124 | 114 | << add("--message", "message", false, |
… |
… |
void MythUtilCommandLineParser::LoadArguments(void) |
191 | 181 | addVersion(); |
192 | 182 | addLogging(); |
193 | 183 | allowExtras(); |
| 184 | CommandLineArg::AllowOneOf(QList<CommandLineArg*>() << |
| 185 | new CommandLineArg("chanid") << |
| 186 | add("--video", "video", "", |
| 187 | "Specify path name of Video Gallery video " |
| 188 | "to operate on.", "")); |
194 | 189 | } |
195 | 190 | |
196 | 191 | QString MythUtilCommandLineParser::GetHelpHeader(void) const |
diff --git a/mythtv/programs/mythutil/mythutil.cpp b/mythtv/programs/mythutil/mythutil.cpp
index 9e88e51..373656a 100644
a
|
b
|
|
11 | 11 | bool GetProgramInfo(const MythUtilCommandLineParser &cmdline, |
12 | 12 | ProgramInfo &pginfo) |
13 | 13 | { |
| 14 | if (cmdline.toBool("video")) |
| 15 | { |
| 16 | QString video = cmdline.toString("video"); |
| 17 | pginfo = ProgramInfo(video); |
| 18 | return true; |
| 19 | } |
14 | 20 | if (!cmdline.toBool("chanid")) |
15 | 21 | { |
16 | 22 | LOG(VB_GENERAL, LOG_ERR, "No chanid specified"); |