init: lightweightVersionCheck no longer requires any arg processing

This commit is contained in:
Paul Beckingham 2016-04-02 13:04:39 -04:00
parent 85c18376e3
commit 370c024409
3 changed files with 8 additions and 8 deletions

View file

@ -38,6 +38,11 @@
////////////////////////////////////////////////////////////////////////////////
int main (int argc, const char** argv)
{
// Lightweight version checking that doesn't require initialization or I/O.
int status = 0;
if (lightweightVersionCheck (argc, argv))
return status;
// The log is needed early, in order to capture as much as possible, but will
// only be given a file name once the rules are loaded. The log therefore
// buffers the messages until it has a file name to write to.
@ -49,11 +54,6 @@ int main (int argc, const char** argv)
for (int i = 0; i < argc; i++)
args.push_back (argv[i]);
// Lightweight version checking that doesn't require initialization or I/O.
int status = 0;
if (lightweightVersionCheck (args))
return status;
try
{
// Prepare the database, but do not read data.