timew: CLI analysis must be repeated after extensions are found

This commit is contained in:
Paul Beckingham 2016-04-09 10:46:24 -04:00
parent 3a1efc330b
commit 08cfcc472b

View file

@ -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);