[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/charm
From: Mirko Boehm <mirko () kde ! org>
Date: 2009-05-07 21:30:50
Message-ID: 1241731850.369552.18832.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 965072 by mirko:
r56651@cutiepie: mirko | 2009-05-06 20:51:12 +0200
- add -v (print version) to time sheet generator as well
_M . (directory)
M +8 -1 trunk/Tools/TimesheetGenerator/Options.cpp
--- trunk/playground/utils/charm/trunk/Tools/TimesheetGenerator/Options.cpp #965071:965072
@@ -1,5 +1,6 @@
extern "C"
{
+#include <stdlib.h>
#include <getopt.h>
}
@@ -8,6 +9,8 @@
#include <QObject>
#include <QFile>
+#include "Core/CharmVersion.h"
+
#include "Exceptions.h"
#include "Options.h"
@@ -17,7 +20,7 @@
{
opterr = 0;
int ch;
- while ((ch = getopt(argc, argv, "hf:d:")) != -1)
+ while ((ch = getopt(argc, argv, "vhf:d:")) != -1)
{
if (ch == '?')
{
@@ -51,6 +54,10 @@
}
case 'h':
throw UsageException();
+ case 'v':
+ std::cout << CHARM_VERSION << std::endl;
+ exit( 0 );
+ break;
default:
break;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic