mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Parser
- On initialization, bypass lexing for argv[0] (program name) and any 'rc:' and 'rc.' arguments.
This commit is contained in:
parent
a3d2750f40
commit
bea4c6fd77
1 changed files with 9 additions and 0 deletions
|
@ -80,6 +80,15 @@ void Parser::initialize (int argc, const char** argv)
|
|||
branch->tag ("ORIGINAL");
|
||||
branch->tag ("?");
|
||||
|
||||
// Do not lex argv[0].
|
||||
if (i == 0)
|
||||
continue;
|
||||
|
||||
// Do no lex RC overrides.
|
||||
if (raw.substr (0, 3) == "rc." ||
|
||||
raw.substr (0, 3) == "rc:")
|
||||
continue;
|
||||
|
||||
// If the argument contains a space, it was quoted. Record that fact.
|
||||
if (! noSpaces (raw))
|
||||
branch->tag ("QUOTED");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue