- 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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user