From 5059c335c46c3d250deaa6afaca2f7740bdddf36 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Wed, 22 Sep 2010 17:14:42 +0200 Subject: Correct documentation on evemu-play usage The data should be directed into the program, not given as argument. Also make evemu-play complain if given two arguments. Signed-off-by: Henrik Rydberg --- INSTALL | 4 ++-- tools/evemu-play.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/INSTALL b/INSTALL index cd69b2b..0870e39 100644 --- a/INSTALL +++ b/INSTALL @@ -17,11 +17,11 @@ To record a stream of events, do To create a device from the properties, do - sudo ./tools/evemu-create device.properties + sudo ./tools/evemu-device device.properties To replay a stream of events, do - sudo ./tools/evemu-play /dev/input/eventY device.data + sudo ./tools/evemu-play /dev/input/eventY < device.data To destroy the device, do diff --git a/tools/evemu-play.c b/tools/evemu-play.c index 54a16d9..286bf6a 100644 --- a/tools/evemu-play.c +++ b/tools/evemu-play.c @@ -34,7 +34,7 @@ int main(int argc, char *argv[]) { int fd; - if (argc < 2) { + if (argc != 2) { fprintf(stderr, "Usage: %s \n", argv[0]); fprintf(stderr, "\n"); fprintf(stderr, "Event data is read from standard input.\n"); -- cgit v1.2.3