Argument Parsing

- Eliminated stored arg_overrides and file_override in Context.
- Removed Filter, Subst, Task, Sequence from Context.
- Remove shadow file support.  Hallelujah.
- Disabled/commented out most commands, ready for the big transition
  to the new parsing style.
- Obsoleted Subst.{h,cpp}.
This commit is contained in:
Paul Beckingham 2011-06-04 15:11:34 -04:00
parent b4c1e47ab4
commit 58a677ffb5
42 changed files with 265 additions and 383 deletions

View file

@ -46,10 +46,13 @@ CmdPrepend::CmdPrepend ()
////////////////////////////////////////////////////////////////////////////////
int CmdPrepend::execute (std::string& output)
{
/*
if (!context.task.has ("description"))
throw std::string ("Additional text must be provided.");
*/
int rc = 0;
/*
int count = 0;
std::stringstream out;
@ -126,6 +129,7 @@ int CmdPrepend::execute (std::string& output)
out << "Prepended " << count << " task" << (count == 1 ? ".\n" : "s.\n");
output = out.str ();
*/
return rc;
}