From 98c828bb807245777f862f3311a8d432c8a3595c Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Tue, 2 Jul 2013 15:37:52 +1000 Subject: [PATCH] Add methods to CommandLineParser and CommandLineArg --- mythtv/libs/libmythbase/mythcommandlineparser.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mythtv/libs/libmythbase/mythcommandlineparser.h b/mythtv/libs/libmythbase/mythcommandlineparser.h index 2e2f36a68f1..d455a883299 100644 --- a/mythtv/libs/libmythbase/mythcommandlineparser.h +++ b/mythtv/libs/libmythbase/mythcommandlineparser.h @@ -29,6 +29,7 @@ class MBASE_PUBLIC CommandLineArg : public ReferenceCounter void AddKeyword(QString keyword) { m_keywords << keyword; } QString GetName(void) const { return m_name; } + QString GetUsedKeyword(void) const { return m_usedKeyword; } int GetKeywordLength(void) const; QString GetHelpString(int off, QString group = "", bool force = false) const; @@ -243,6 +244,7 @@ class MBASE_PUBLIC MythCommandLineParser QString GetLogFilePath(void); int GetSyslogFacility(void); LogLevel_t GetLogLevel(void); + QString GetAppName(void) const { return m_appname; } bool toBool(QString key) const; int toInt(QString key) const;