MythTV  master
mythwelcome/commandlineparser.cpp
Go to the documentation of this file.
1 #include <QString>
2 
3 #include "mythcorecontext.h"
4 #include "commandlineparser.h"
5 
9 
11 {
12  return "MythWelcome is a graphical launcher application to allow MythFrontend \n"
13  "to disconnect from the backend, and allow automatic shutdown to occur.";
14 }
15 
17 {
18  addHelp();
20  addVersion();
21  addLogging();
22 
23  add(QStringList{"-s", "--setup"}, "setup", false,
24  "Run setup for mythshutdown.", "");
25 }
26 
commandlineparser.h
MythCommandLineParser
Parent class for defining application command line parsers.
Definition: mythcommandlineparser.h:115
MythCommandLineParser::addVersion
void addVersion(void)
Canned argument definition for –version.
Definition: mythcommandlineparser.cpp:2277
MYTH_APPNAME_MYTHWELCOME
#define MYTH_APPNAME_MYTHWELCOME
Definition: mythcorecontext.h:25
MythWelcomeCommandLineParser::GetHelpHeader
QString GetHelpHeader(void) const override
Definition: mythwelcome/commandlineparser.cpp:10
MythCommandLineParser::addLogging
void addLogging(const QString &defaultVerbosity="general", LogLevel_t defaultLogLevel=LOG_INFO)
Canned argument definition for all logging options, including –verbose, –logpath, –quiet,...
Definition: mythcommandlineparser.cpp:2384
MythWelcomeCommandLineParser::MythWelcomeCommandLineParser
MythWelcomeCommandLineParser()
Definition: mythwelcome/commandlineparser.cpp:6
MythCommandLineParser::add
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
Definition: mythcommandlineparser.h:145
mythcorecontext.h
MythCommandLineParser::addHelp
void addHelp(void)
Canned argument definition for –help.
Definition: mythcommandlineparser.cpp:2264
MythWelcomeCommandLineParser::LoadArguments
void LoadArguments(void) override
Definition: mythwelcome/commandlineparser.cpp:16
MythCommandLineParser::addSettingsOverride
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
Definition: mythcommandlineparser.cpp:2328