summaryrefslogtreecommitdiffstats
path: root/abs/core/mythinstall/MythVantage-app/mythinstall/commandlineparser.cpp
blob: 7c8f4a208edb9e184ffce7bae22e3945e38f3299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55

using namespace std;

#include <QString>

#include "mythcorecontext.h"
#include "commandlineparser.h"
#define MYTH_APPNAME_MYTHINSTALL "mythinstall"

MythInstallCommandLineParser::MythInstallCommandLineParser() :
    MythCommandLineParser(MYTH_APPNAME_MYTHINSTALL)
{ LoadArguments(); }

void MythInstallCommandLineParser::LoadArguments(void)
{
    addHelp();
    addVersion();
    addSettingsOverride();
    addGeometry();
    addLogging();

//     add(QStringList( QStringList() << "-s" << "--screen" ), "screen", "",
//         "List settings screens to show", "");

    add("-s", "screen", "",
        "Start the frontend at specified jump point.", "");

    add("-r", "readme", "",
        "Show readme", "");

    add("-H", "help", "",
            "Show help screen", "");

    add("-Q", "question", "",
                "Display question with yes/no", "");

    add("-b", "run_mythsetup", "",
        "Ask to start mythtv setup", "");

    add("-L", "show_lang", "",
    "On install show lang/country screen", "");



    //add(QStringList( QStringList() << "-p" << "--prompt" ), "prompt", false,
                     //         "Always prompt for backend selection.", "");


}

QString MythInstallCommandLineParser::GetHelpHeader(void) const
{
    return "generic help msg line 34";
}