CLI
- Hooked up the parser to rc.abbreviation.minimum.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user