mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Timew: Combined argc/argv into args
- Modified lightweightVersionCheck.
This commit is contained in:
parent
a21206bfb3
commit
ee351d33e3
3 changed files with 9 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue