code to display only once the message about the help parameter + some indent fix + some more comments

This commit is contained in:
Johann Dreo 2010-08-02 17:07:32 +02:00
commit 9f4c073678
3 changed files with 61 additions and 44 deletions

View file

@ -244,11 +244,11 @@ public:
private:
void doRegisterParam(eoParam& param) const;
void doRegisterParam(eoParam& param);
std::pair<bool, std::string> getValue(eoParam& _param) const;
void updateParameters() const;
void updateParameters();
typedef std::multimap<std::string, eoParam*> MultiMapType;
@ -264,6 +264,10 @@ private:
typedef std::map<std::string, std::string> LongNameMapType;
LongNameMapType longNameMap;
// flag that marks if the user need to know that there was a problem
// used to display the message about "-h" only once
bool needHelpMessage;
eoValueParam<bool> needHelp;
eoValueParam<bool> stopOnUnknownParam;