00001
00002 using namespace std;
00003
00004 #include <QString>
00005
00006 #include "mythcorecontext.h"
00007 #include "commandlineparser.h"
00008
00009 MythTVSetupCommandLineParser::MythTVSetupCommandLineParser() :
00010 MythCommandLineParser(MYTH_APPNAME_MYTHTV_SETUP)
00011 { LoadArguments(); }
00012
00013 QString MythTVSetupCommandLineParser::GetHelpHeader(void) const
00014 {
00015 return "Mythtv-setup is the setup application for the backend server. It is \n"
00016 "used to configure the backend, and manage tuner cards and storage. \n"
00017 "Most settings will require a restart of the backend before they take \n"
00018 "effect.";
00019 }
00020
00021 void MythTVSetupCommandLineParser::LoadArguments(void)
00022 {
00023 addHelp();
00024 addSettingsOverride();
00025 addVersion();
00026 addWindowed();
00027 addMouse();
00028 addGeometry();
00029 addDisplay();
00030 addLogging();
00031
00032 add("--expert", "expert", false, "", "Expert mode.");
00033 add("--scan-list", "scanlist", false, "", "no help");
00034 add("--scan-save-only", "savescan", false, "", "no help");
00035 add("--scan-non-interactive", "scannoninteractive", false, "", "no help");
00036
00037 add("--frequency-table", "freqtable", "atsc-vsb8-us", "",
00038 "Specify frequency table to be used with command "
00039 "line channel scanner.");
00040 add("--input-name", "inputname", "", "",
00041 "Specify which input to scan for, if specified card "
00042 "supports multiple.");
00043 add("--FTAonly", "ftaonly", false, "", "Only import 'Free To Air' channels.");
00044 add("--service-type", "servicetype", "all", "",
00045 "To be used with channel scanning or importing, specify "
00046 "the type of services to import. Select from the following, "
00047 "multiple can be added with '+':\n"
00048 " all, tv, radio");
00049
00050 add("--scan", "scan", 0U, "",
00051 "Run the command line channel scanner on a specified card ID.")
00052 ->SetParentOf("freqtable")
00053 ->SetParentOf("inputname")
00054 ->SetParentOf("ftaonly")
00055 ->SetParentOf("servicetype")
00056 ->SetBlocks("importscan");
00057
00058 add("--scan-import", "importscan", 0U, "",
00059 "Import an existing scan from the database. Use --scan-list "
00060 "to enumerate scans available for import.")
00061 ->SetParentOf("ftaonly")
00062 ->SetParentOf("servicetype");
00063 }
00064