From 08cfcc472b65c7dd6dfa2d1ca96935f18d0db619 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 9 Apr 2016 10:46:24 -0400 Subject: [PATCH] timew: CLI analysis must be repeated after extensions are found --- src/timew.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/timew.cpp b/src/timew.cpp index dd06a3c3..7c7dae99 100644 --- a/src/timew.cpp +++ b/src/timew.cpp @@ -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);