- Added feature #827, which allows augmentation of default.command with extra
  arguments, when default.command itself contains mulitple arguments (thanks to
  Aikido Guy).
- Fixed bug #846, which prevented the default.command configuration from
  handling multiple arguments (thanks to Uli Martens).
This commit is contained in:
Paul Beckingham 2011-09-25 11:37:57 -04:00
parent 4a87ab74f4
commit 4858931592
3 changed files with 27 additions and 21 deletions

View file

@ -154,7 +154,12 @@ void A3::capture_first (const std::string& arg)
{
// Break the new argument into parts that comprise a series.
std::vector <Arg> series;
series.push_back (Arg (arg));
std::vector <std::string> separated;
splitq (separated, arg, ' ');
std::vector <std::string>::iterator sep;
for (sep = separated.begin (); sep != separated.end (); ++sep)
series.push_back (Arg (*sep));
// Locate an appropriate place to insert the series. This would be
// immediately after the program and command arguments.