Skip to content

Commit

Permalink
Move manual grabber settings to anything after a '--', as opposed to the
Browse files Browse the repository at this point in the history
old --graboptions setting. This behavior is not yet documented in
--help.

Fixes #9853
  • Loading branch information
wagnerrp committed Jul 8, 2011
1 parent 701d58f commit d780af4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions mythtv/programs/mythfilldatabase/commandlineparser.cpp
Expand Up @@ -15,6 +15,7 @@ void MythFillDatabaseCommandLineParser::LoadArguments(void)
addHelp();
addVersion();
addLogging();
allowPassthrough();

add("--manual", "manual", false, "Run interactive configuration",
"Manual mode will interactively ask you questions about "
Expand Down Expand Up @@ -86,11 +87,11 @@ void MythFillDatabaseCommandLineParser::LoadArguments(void)
"restores the behavior of adding every channel in "
"the downloaded channel lineup to MythTV's lineup, "
"in case MythTV's smarts fail you.");
add("--graboptions", "graboptions", "", "",
"Manually define options to pass to the data grabber. "
"Do NOT use this option unless you know what you are "
"doing. Mythfilldatabase will automatically use the "
"correct options for xmltv compliant grabbers.");
// add("--graboptions", "graboptions", "", "",
// "Manually define options to pass to the data grabber. "
// "Do NOT use this option unless you know what you are "
// "doing. Mythfilldatabase will automatically use the "
// "correct options for xmltv compliant grabbers.");
add("--cardtype", "cardtype", "", "", "No information."); // need documentation for this one
add("--max-days", "maxdays", 0, "force number of days to update",
"Force the maximum number of days, counting today, "
Expand Down
4 changes: 2 additions & 2 deletions mythtv/programs/mythfilldatabase/main.cpp
Expand Up @@ -212,8 +212,8 @@ int main(int argc, char *argv[])
fill_data.chan_data.remove_new_channels = true;
if (cmdline.toBool("nofilterchannels"))
fill_data.chan_data.filter_new_channels = false;
if (cmdline.toBool("graboptions"))
fill_data.graboptions = " " + cmdline.toString("graboptions");
if (!cmdline.GetPassthrough().isEmpty())
fill_data.graboptions = " " + cmdline.GetPassthrough();
if (cmdline.toBool("sourceid"))
sourceid = cmdline.toInt("sourceid");
if (cmdline.toBool("cardtype"))
Expand Down

0 comments on commit d780af4

Please sign in to comment.