Revision: 81
http://libvidcap.svn.sourceforge.net/libvidcap/?rev=81&view=rev
Author: bcholew
Date: 2007-12-12 12:25:17 -0800 (Wed, 12 Dec 2007)
Log Message:
-----------
add usage information
Modified Paths:
--------------
trunk/examples/vidcapTester/vidcapTester.cpp
Modified: trunk/examples/vidcapTester/vidcapTester.cpp
===================================================================
--- trunk/examples/vidcapTester/vidcapTester.cpp 2007-12-12 19:45:41 UTC (rev 80)
+++ trunk/examples/vidcapTester/vidcapTester.cpp 2007-12-12 20:25:17 UTC (rev 81)
@@ -1,6 +1,7 @@
#include <stdexcept>
#include <QApplication>
+#include <QDebug>
#include <QIcon>
#include "GrabberManager.h"
@@ -33,6 +34,13 @@
level_string.toAscii().constData(), msg);
}
+static void usage()
+{
+ qDebug() << "usage: vidcapTester " <<
+ "[-f FRAMESPERSECOND] " <<
+ "[-w WIDTH] [-h HEIGHT]";
+}
+
static void parse_args(int argc, char * argv[], int & width, int & height,
int & framerate)
{
@@ -102,6 +110,7 @@
catch ( const std::runtime_error & e )
{
qCritical(e.what());
+ usage();
return 1;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|