Task 2.0.0 Code Salvage

This commit is contained in:
Paul Beckingham
2010-09-09 20:49:17 -04:00
parent 7f54b89f24
commit 73ff6ea973
29 changed files with 2713 additions and 4 deletions

View File

@@ -50,6 +50,22 @@ int main (int argc, char** argv)
{
context.initialize (argc, argv);
/* From 2.0.0
std::string::size_type task = context.program.find ("/task");
std::string::size_type t = context.program.find ("/t");
std::string::size_type cal = context.program.find ("/cal");
if (context.program != "task" &&
context.program != "t" &&
context.program != "cal" &&
(task == std::string::npos || context.program.length () != task + 5) &&
(t == std::string::npos || context.program.length () != t + 2) &&
(cal == std::string::npos || context.program.length () != cal + 4))
status = context.handleInteractive ();
else
status = context.run ();
*/
std::string::size_type itask = context.program.find ("/itask");
if (context.program == "itask" ||
(itask != std::string::npos && context.program.length () == itask + 5))