Argument Parsing

- Added proper handling for sequences, in that they must be contiguous.
- Added placeholder code for default command, and automatic info report.
- Eliminated Context::parse.
- Eliminated Context::run Timer, because when it goes out of scope, it
  adds timing messages to the deubg output, which at the end of Context::run
  has already been displayed.  In addition, the Context::dispatch timer
  is about 0.2 milliseconds shorter, so the two are redundant.
This commit is contained in:
Paul Beckingham
2011-06-04 18:42:33 -04:00
parent 19aa78a922
commit f9c1820740
5 changed files with 198 additions and 321 deletions

View File

@@ -70,13 +70,13 @@ int main (int argc, const char** argv)
catch (std::string& error)
{
std::cout << error << "\n";
return -1;
status = -1;
}
catch (...)
{
std::cerr << STRING_UNKNOWN_ERROR << "\n";
return -2;
status = -2;
}
return status;