Timew: Combined argc/argv into args

- Modified lightweightVersionCheck.
This commit is contained in:
Paul Beckingham 2016-03-17 16:39:21 -04:00
parent a21206bfb3
commit ee351d33e3
3 changed files with 9 additions and 4 deletions

View file

@ -42,9 +42,9 @@
#include <iostream>
////////////////////////////////////////////////////////////////////////////////
bool lightweightVersionCheck (int argc, const char** argv)
bool lightweightVersionCheck (const std::vector <std::string>& args)
{
if (argc == 2 && ! std::strcmp (argv[1], "--version"))
if (args.size () == 2 && args[1] == "--version")
{
std::cout << VERSION << "\n";
return true;