CLI
- Hooked up the parser to rc.abbreviation.minimum.
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
extern Context context;
|
extern Context context;
|
||||||
|
|
||||||
// Overridden by rc.abbreviation.minimum.
|
// Overridden by rc.abbreviation.minimum.
|
||||||
static int minimumMatchLength = 3;
|
int CLI::minimumMatchLength = 3;
|
||||||
|
|
||||||
// Alias expansion limit. Any more indicates some kind of error.
|
// Alias expansion limit. Any more indicates some kind of error.
|
||||||
static int safetyValveDefault = 10;
|
static int safetyValveDefault = 10;
|
||||||
|
|||||||
@@ -63,6 +63,9 @@ public:
|
|||||||
// Represents the command line.
|
// Represents the command line.
|
||||||
class CLI
|
class CLI
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
static int minimumMatchLength;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CLI ();
|
CLI ();
|
||||||
~CLI ();
|
~CLI ();
|
||||||
|
|||||||
@@ -584,6 +584,8 @@ void Context::getLimits (int& rows, int& lines)
|
|||||||
// easier, it has been decoupled from Context.
|
// easier, it has been decoupled from Context.
|
||||||
void Context::staticInitialization ()
|
void Context::staticInitialization ()
|
||||||
{
|
{
|
||||||
|
CLI::minimumMatchLength = config.getInteger ("abbreviation.minimum");
|
||||||
|
|
||||||
Task::defaultProject = config.get ("default.project");
|
Task::defaultProject = config.get ("default.project");
|
||||||
Task::defaultPriority = config.get ("default.priority");
|
Task::defaultPriority = config.get ("default.priority");
|
||||||
Task::defaultDue = config.get ("default.due");
|
Task::defaultDue = config.get ("default.due");
|
||||||
|
|||||||
Reference in New Issue
Block a user