14 const QString& arguments,
15 const QString& description,
16 const QString& example,
17 const QString& depricatedMsg,
41 _description = newDescription;
49 _example = newExample;
57 _arguments = newArguments;
61 return _depricatedMsg;
65 _depricatedMsg = newDepricatedMsg;
81 right +=
" Example: " +
example();
84 return {{left, {right}}};
88 return names().size();
void setExample(const QString &newExample)
setExample This method sets a new example value of this option
bool isDepricated() const
isDepricated This method return true if this option is depricated.
const QString & example() const
example This is example of use string.
void setDepricatedMsg(const QString &newDepricatedMsg)
setDepricatedMsg This method sets new value of the depricated warnning message of this option.
void setNames(const QStringList &newNames)
setNames This method sets new value of the option name.
void setDescription(const QString &newDescription)
setDescription This method sets new description of this options.
Help::Options toHelp() const
toHelp This method convert this option into help line. The help line have next structure :
bool isValid() const
isValid This method return true if the option is valid. If option do not contain a name then it is in...
void setArguments(const QString &newArguments)
setArguments This method sets new value of the options arguments
const QString & depricatedMsg() const
depricatedWarning This is a message that will be printed as a warning if user will use this option....
const QString & description() const
description This is description message of this option.
OptionData(const QStringList &names, const QString &arguments="", const QString &description="", const QString &example="", const QString &depricatedMsg="", bool removed=false)
OptionData This is main constructor.
bool isRemoved() const
isRemoved This method return true if the option is removed.
const QString & arguments() const
arguments This is input arguments of this option or help meesage about arguments.
const QStringList & names() const
name This is name of the option. It is a required argument and cannot be empty.
QMultiMap< QString, QString > Options
Options this is list of key-descriptions pairs of help. The key is name of the available argument and...
The QuasaraAppUtils class This lib include base functions for the all applications of QuasarApp group...