fixed output override bug

This commit is contained in:
mes5k 2005-01-05 18:28:09 +00:00
parent aa7d526623
commit 5e98e0c863

View File

@ -16,10 +16,23 @@ class MyOutput : public StdOutput
virtual void failure(CmdLineInterface& c, ArgException& e)
{
cerr << "My special failure message for: " << endl
cerr << "my failure message: " << endl
<< e.what() << endl;
}
virtual void usage(CmdLineInterface& c)
{
cout << "my usage message:" << endl;
list<Arg*> args = c.getArgList();
for (ArgListIterator it = args.begin(); it != args.end(); it++)
cout << (*it)->longID()
<< " (" << (*it)->getDescription() << ")" << endl;
}
virtual void version(CmdLineInterface& c)
{
cout << "my version message: 0.1" << endl;
}
};