mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
CLI
- Hooked up the parser to rc.abbreviation.minimum.
This commit is contained in:
parent
2797541b8d
commit
11d210a7c7
3 changed files with 6 additions and 1 deletions
|
@ -40,7 +40,7 @@
|
|||
extern Context context;
|
||||
|
||||
// Overridden by rc.abbreviation.minimum.
|
||||
static int minimumMatchLength = 3;
|
||||
int CLI::minimumMatchLength = 3;
|
||||
|
||||
// Alias expansion limit. Any more indicates some kind of error.
|
||||
static int safetyValveDefault = 10;
|
||||
|
|
|
@ -63,6 +63,9 @@ public:
|
|||
// Represents the command line.
|
||||
class CLI
|
||||
{
|
||||
public:
|
||||
static int minimumMatchLength;
|
||||
|
||||
public:
|
||||
CLI ();
|
||||
~CLI ();
|
||||
|
|
|
@ -584,6 +584,8 @@ void Context::getLimits (int& rows, int& lines)
|
|||
// easier, it has been decoupled from Context.
|
||||
void Context::staticInitialization ()
|
||||
{
|
||||
CLI::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
||||
|
||||
Task::defaultProject = config.get ("default.project");
|
||||
Task::defaultPriority = config.get ("default.priority");
|
||||
Task::defaultDue = config.get ("default.due");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue