mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
- 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:
parent
4a87ab74f4
commit
4858931592
3 changed files with 27 additions and 21 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue