mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CLI2: Static initialization of global settings.
This commit is contained in:
parent
708ddd3804
commit
ca90893216
3 changed files with 3 additions and 3 deletions
|
@ -38,10 +38,10 @@
|
|||
|
||||
extern Context context;
|
||||
|
||||
/*
|
||||
// Overridden by rc.abbreviation.minimum.
|
||||
int CLI2::minimumMatchLength = 3;
|
||||
|
||||
/*
|
||||
// Alias expansion limit. Any more indicates some kind of error.
|
||||
static int safetyValveDefault = 10;
|
||||
|
||||
|
|
|
@ -68,9 +68,8 @@ public:
|
|||
class CLI2
|
||||
{
|
||||
public:
|
||||
/*
|
||||
static int minimumMatchLength;
|
||||
*/
|
||||
|
||||
static void getOverride (int, const char**, std::string&, File&);
|
||||
static void getDataLocation (int, const char**, Path&);
|
||||
static void applyOverrides (int, const char**);
|
||||
|
|
|
@ -624,6 +624,7 @@ void Context::getLimits (int& rows, int& lines)
|
|||
void Context::staticInitialization ()
|
||||
{
|
||||
CLI::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
||||
CLI2::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
||||
|
||||
Task::defaultProject = config.get ("default.project");
|
||||
Task::defaultDue = config.get ("default.due");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue