Commands - timesheet

- Added stubs for the start of a command rewrite, possibly.
This commit is contained in:
Paul Beckingham 2011-08-06 16:28:45 -04:00
parent fb23bf73a3
commit e8a49b3e8e

View file

@ -82,11 +82,9 @@ int CmdTimesheet::execute (std::string& output)
// Determine how many reports to run.
int quantity = 1;
/*
TODO Need some command line parsing.
if (context.sequence.size () == 1)
quantity = context.sequence[0];
*/
A3 modifications = context.a3.extract_modifications ();
if (modifications.size () == 1)
quantity = strtol (modifications[0]._raw.c_str (), NULL, 10);;
std::stringstream out;
for (int week = 0; week < quantity; ++week)