Skip to content
Browse files

Mark command line options as deprecated

  • Loading branch information...
1 parent 6c42154 commit 8758685d67321d9ff6ae5f925f0acf1643249ff9 @wagnerrp wagnerrp committed Oct 12, 2011
View
13 mythtv/programs/mythbackend/commandlineparser.cpp
@@ -23,15 +23,18 @@ void MythBackendCommandLineParser::LoadArguments(void)
CommandLineArg::AllowOneOf(QList<CommandLineArg*>()
<< add("--printsched", "printsched", false,
"Print upcoming list of scheduled recordings.", "")
+// ->SetDeprecated("use mythutil instead")
<< add("--testsched", "testsched", false,
"do some scheduler testing.", "")
+// ->SetDeprecated("use mythutil instead")
<< add("--resched", "resched", false,
"Trigger a run of the recording scheduler on the existing "
"master backend.",
"This command will connect to the master backend and trigger "
"a run of the recording scheduler. The call will return "
"immediately, however the scheduler run may take several "
"seconds to a minute or longer to complete.")
+ ->SetDeprecated("use mythutil instead")
<< add("--scanvideos", "scanvideos", false,
"Trigger a rescan of media content in MythVideo.",
"This command will connect to the master backend and trigger "
@@ -41,23 +44,31 @@ void MythBackendCommandLineParser::LoadArguments(void)
"content it has to hash, and how quickly the scanner can "
"access those files to do so. If enabled, this will also "
"trigger the bulk metadata scanner upon completion.")
+ ->SetDeprecated("use mythutil instead")
<< add("--event", "event", "",
"Send a backend event test message.", "")
+ ->SetDeprecated("use mythutil instead")
<< add("--systemevent", "systemevent", "",
"Send a backend SYSTEM_EVENT test message.", "")
+ ->SetDeprecated("use mythutil instead")
<< add("--clearcache", "clearcache", false,
"Trigger a cache clear on all connected MythTV systems.",
"This command will connect to the master backend and trigger "
"a cache clear event, which will subsequently be pushed to "
"all other connected programs. This event will clear the "
"local database settings cache used by each program, causing "
"options to be re-read from the database upon next use.")
+ ->SetDeprecated("use mythutil instead")
<< add("--printexpire", "printexpire", "ALL",
"Print upcoming list of recordings to be expired.", "")
+// ->SetDeprecated("use mythutil instead")
<< add("--setverbose", "setverbose", "",
"Change debug mask of the existing master backend.", "")
+// ->SetDeprecated("use mythutil instead")
<< add("--setloglevel", "setloglevel", "",
- "Change logging level of the existing master backend.", "") );
+ "Change logging level of the existing master backend.", "")
+// ->SetDeprecated("use mythutil instead");
+ );
add("--nosched", "nosched", false, "",
"Intended for debugging use only, disable the scheduler "
View
6 mythtv/programs/mythcommflag/commandlineparser.cpp
@@ -33,17 +33,23 @@ void MythCommFlagCommandLineParser::LoadArguments(void)
CommandLineArg::AllowOneOf( QList<CommandLineArg*>()
<< add("--gencutlist", "gencutlist", false,
"Copy the commercial skip list to the cutlist.", "")
+ ->SetDeprecated("use mythutil instead")
<< add("--clearcutlist", "clearcutlist", false,
"Clear the cutlist.", "")
+ ->SetDeprecated("use mythutil instead")
<< add("--clearskiplist", "clearskiplist", false,
"Clear the commercial skip list.", "")
+ ->SetDeprecated("use mythutil instead")
<< add("--getcutlist", "getcutlist", false,
"Display the current cutlist.", "")
+ ->SetDeprecated("use mythutil instead")
<< add("--getskiplist", "getskiplist", false,
"Display the current commercial skip list.", "")
+ ->SetDeprecated("use mythutil instead")
<< add("--setcutlist", "setcutlist", "",
"Set a new cutlist in the form:\n"
"#-#[,#-#]... (ie, 1-100,1520-3012,4091-5094)", "")
+ ->SetDeprecated("use mythutil instead")
<< add("--skipdb", "skipdb", false, "",
"Intended for external 3rd party use.")
->SetGroup("Advanced")
View
13 mythtv/programs/mythfilldatabase/commandlineparser.cpp
@@ -127,26 +127,30 @@ void MythFillDatabaseCommandLineParser::LoadArguments(void)
"Force a refresh for today's guide data.\nThis can be used "
"in combination with other --refresh-<n> options.\n"
"If being used with datadirect, this option should not be "
- "used, rather use --dd-grab-all to pull all listings each time.");
+ "used, rather use --dd-grab-all to pull all listings each time.")
+ ->SetDeprecated("use --refresh instead");
add("--dont-refresh-tomorrow", "dontrefreshtomorrow", false, "",
"This option is only valid for selected grabbers.\n"
"Prevent mythfilldatabase from pulling information for "
"tomorrow's listings. Data for tomorrow is always pulled "
"unless specifically specified otherwise.\n"
"If being used with datadirect, this option should not be "
- "used, rather use --dd-grab-all to pull all listings each time.");
+ "used, rather use --dd-grab-all to pull all listings each time.")
+ ->SetDeprecated("use --refresh instead");
add("--refresh-second", "refreshsecond", false, "",
"This option is only valid for selected grabbers.\n"
"Force a refresh for guide data two days from now. This can "
"be used in combination with other --refresh-<n> options.\n"
"If being used with datadirect, this option should not be "
- "used, rather use --dd-grab-all to pull all listings each time.");
+ "used, rather use --dd-grab-all to pull all listings each time.")
+ ->SetDeprecated("use --refresh instead");
add("--refresh-day", "refreshday", 0U, "",
"This option is only valid for selected grabbers.\n"
"Force a refresh for guide data on a specific day. This can "
"be used in combination with other --refresh-<n> options.\n"
"If being used with datadirect, this option should not be "
- "used, rather use --dd-grab-all to pull all listings each time.");
+ "used, rather use --dd-grab-all to pull all listings each time.")
+ ->SetDeprecated("use --refresh instead");
add("--dont-refresh-tba", "dontrefreshtba", false,
"don't refresh \"To be announced\" programs",
"This option is only valid for selected grabbers.\n"
@@ -161,6 +165,7 @@ void MythFillDatabaseCommandLineParser::LoadArguments(void)
"with fourteen downloads of one day each.\n"
"If being used with datadirect, this option should not be "
"used, rather use --dd-grab-all to pull all listings each time.")
+ ->SetDeprecated("use --refresh instead")
->SetBlocks("dontrefreshtomorrow")
->SetBlocks("refreshsecond")
->SetBlocks("refreshday")

0 comments on commit 8758685

Please sign in to comment.
Something went wrong with that request. Please try again.