mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CLI2: Fix bug where a second terminator (--) was stripped
This commit is contained in:
parent
02b91a94fc
commit
076b2aaa95
2 changed files with 2 additions and 2 deletions
|
@ -363,7 +363,8 @@ void CLI2::handleTerminator ()
|
||||||
std::vector <A2> reconstructed;
|
std::vector <A2> reconstructed;
|
||||||
for (auto& a : _args)
|
for (auto& a : _args)
|
||||||
{
|
{
|
||||||
if (a._lextype == Lexer::Type::separator)
|
if (a._lextype == Lexer::Type::separator &&
|
||||||
|
! terminated)
|
||||||
{
|
{
|
||||||
terminated = true;
|
terminated = true;
|
||||||
changes = true;
|
changes = true;
|
||||||
|
|
|
@ -230,7 +230,6 @@ int Context::initialize (int argc, const char** argv)
|
||||||
cli2.add (argv[i]);
|
cli2.add (argv[i]);
|
||||||
|
|
||||||
cli2.analyze ();
|
cli2.analyze ();
|
||||||
|
|
||||||
cli.initialize (argc, argv);
|
cli.initialize (argc, argv);
|
||||||
cli.analyze (true, true);
|
cli.analyze (true, true);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue