mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
timew: CLI analysis must be repeated after extensions are found
This commit is contained in:
parent
3a1efc330b
commit
08cfcc472b
1 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,7 @@ int main (int argc, const char** argv)
|
|||
|
||||
try
|
||||
{
|
||||
// One-time command line scan.
|
||||
// Scan command line.
|
||||
cli.analyze ();
|
||||
|
||||
// Prepare the database, but do not read data.
|
||||
|
@ -71,8 +71,10 @@ int main (int argc, const char** argv)
|
|||
initializeDataAndRules (cli, database, rules);
|
||||
|
||||
// Load extension script info.
|
||||
// Re-analyze command because of the new extention entities.
|
||||
Extensions extensions;
|
||||
initializeExtensions (cli, rules, extensions);
|
||||
cli.analyze ();
|
||||
|
||||
// Dispatch to commands.
|
||||
status = dispatchCommand (cli, database, rules, extensions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue