#include <QString>

#include "mythlcdserver_commandlineparser.h"

#include "libmythbase/mythappname.h"

MythLCDServerCommandLineParser::MythLCDServerCommandLineParser() :
    MythCommandLineParser(MYTH_APPNAME_MYTHLCDSERVER)
{ MythLCDServerCommandLineParser::LoadArguments(); }

void MythLCDServerCommandLineParser::LoadArguments(void)
{
    addHelp();
    addVersion();
    addDaemon();
    addLogging();
    //addPIDFile();

    add(QStringList{"-p", "--port"}, "port", 6545, "listen port",
            "This is the port MythLCDServer will listen on for events.");
    add(QStringList{"-m", "--startupmessage"}, "message", "",
            "Message to display on startup.", "");
    add(QStringList{"-t", "--messagetime"}, "messagetime", 30,
            "Message display duration (in seconds)", "");
    add(QStringList{"-x", "--debuglevel"}, "debug", 0,
            "debug verbosity", "Control debugging verbosity, values from 0-10");

    add("--nodaemon", "nodaemon", false, "", "")
        ->SetRemoved("This is the default behavior. No need for an argument.",
                     "0.25");
}

