MythTV master
mythtv-setup_commandlineparser.cpp
Go to the documentation of this file.
1#include <QString>
2
4
6
10
12{
13 return "Mythtv-setup is the setup application for the backend server. It is \n"
14 "used to configure the backend, and manage tuner cards and storage. \n"
15 "Most settings will require a restart of the backend before they take \n"
16 "effect.";
17}
18
20{
21 addHelp();
23 addVersion();
25 addMouse();
27 addDisplay();
28 addLogging();
30
31 add("--expert", "expert", false, "", "Expert mode.");
32 add("--scan-list", "scanlist", false, "", "no help");
33 add("--scan-save-only", "savescan", false, "", "no help");
34 add("--scan-non-interactive", "scannoninteractive", false, "", "no help");
35
36 add("--freq-std", "freqstd", "atsc", "",
37 "Specify the frequency standard to be used with command "
38 "line channel scanner")
39 ->SetParentOf("modulation")
40 ->SetParentOf("region");
41 add("--modulation", "modulation", "vsb8", "",
42 "Specify the frequency modulation to be used with command "
43 "line channel scanner");
44 add("--region", "region", "us", "",
45 "Specify the region for the frequency standard to be used with command "
46 "line channel scanner");
47
48 add("--input-name", "inputname", "", "",
49 "Specify which input to scan for, if specified card "
50 "supports multiple.");
51 add("--FTAonly", "ftaonly", false, "", "Only import 'Free To Air' channels.");
52 add("--add-full-ts", "addfullts", false, "",
53 "Create addition Transport Stream channels, "
54 "which allow recording of the full, unaltered, transport stream.");
55 add("--service-type", "servicetype", "all", "",
56 "To be used with channel scanning or importing, specify "
57 "the type of services to import. Select from the following, "
58 "multiple can be added with '+':\n"
59 " all, tv, radio");
60
61 add("--scan", "scan", 0U, "",
62 "Run the command line channel scanner on a specified card ID.")
63 ->SetParentOf("freqstd")
64 ->SetParentOf("inputname")
65 ->SetParentOf("ftaonly")
66 ->SetParentOf("servicetype")
67 ->SetParentOf("addfullts")
68 ->SetBlocks("importscan");
69
70
71 add("--scan-import", "importscan", 0U, "",
72 "Import an existing scan from the database. Use --scan-list "
73 "to enumerate scans available for import.")
74 ->SetParentOf("ftaonly")
75 ->SetParentOf("servicetype");
76}
CommandLineArg * SetParentOf(const QString &opt)
Set argument as parent of given child.
CommandLineArg * SetBlocks(const QString &opt)
Set argument as incompatible with given option.
Parent class for defining application command line parsers.
void addVersion(void)
Canned argument definition for –version.
void addPlatform(void)
Pass through the platform argument to Qt for GUI applications.
void addWindowed(void)
Canned argument definition for –windowed and -no-windowed.
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
void addDisplay(void)
Canned argument definition for -display.
void addLogging(const QString &defaultVerbosity="general", LogLevel_t defaultLogLevel=LOG_INFO)
Canned argument definition for all logging options, including –verbose, –logpath, –quiet,...
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
void addMouse(void)
Canned argument definition for –mouse-cursor and –no-mouse-cursor.
void addHelp(void)
Canned argument definition for –help.
void addGeometry(void)
Canned argument definition for –geometry.
QString GetHelpHeader(void) const override
static constexpr const char * MYTH_APPNAME_MYTHTV_SETUP
Definition: mythappname.h:7