From e8a49b3e8e66c26260318629f85e8caf23b8cccb Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 6 Aug 2011 16:28:45 -0400 Subject: [PATCH] Commands - timesheet - Added stubs for the start of a command rewrite, possibly. --- src/commands/CmdTimesheet.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/commands/CmdTimesheet.cpp b/src/commands/CmdTimesheet.cpp index c057ee90f..866372a0c 100644 --- a/src/commands/CmdTimesheet.cpp +++ b/src/commands/CmdTimesheet.cpp @@ -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)