mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 04:27:20 +02:00
CLI2: Refactoring CLI to rely completely on the Lexer
This commit is contained in:
parent
d1d300fc69
commit
708ddd3804
5 changed files with 2553 additions and 0 deletions
|
@ -109,6 +109,7 @@ int Context::initialize (int argc, const char** argv)
|
|||
//
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
CLI2::getOverride (argc, argv, home_dir, rc_file);
|
||||
CLI::getOverride (argc, argv, home_dir, rc_file);
|
||||
|
||||
char* override = getenv ("TASKRC");
|
||||
|
@ -120,6 +121,7 @@ int Context::initialize (int argc, const char** argv)
|
|||
|
||||
config.clear ();
|
||||
config.load (rc_file);
|
||||
CLI2::applyOverrides (argc, argv);
|
||||
CLI::applyOverrides (argc, argv);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -133,6 +135,7 @@ int Context::initialize (int argc, const char** argv)
|
|||
//
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
CLI2::getDataLocation (argc, argv, data_dir);
|
||||
CLI::getDataLocation (argc, argv, data_dir);
|
||||
|
||||
override = getenv ("TASKDATA");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue