[cairo-commit] csi-trace.c

Chris Wilson ickle at kemper.freedesktop.org
Thu Jan 7 02:55:39 PST 2010


 csi-trace.c |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit d1ef291435c5e9f6749601c2a03002b112daf66c
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Thu Sep 17 13:45:37 2009 +0100

    csi-trace: Add an unhelpful help message.

diff --git a/csi-trace.c b/csi-trace.c
index abc70ce..71c76af 100644
--- a/csi-trace.c
+++ b/csi-trace.c
@@ -2,6 +2,7 @@
 #include <cairo-script-interpreter.h>
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <math.h>
 #include <setjmp.h>
 #include <time.h>
@@ -73,6 +74,12 @@ main (int argc, char **argv)
 	    i++;
 	} else if (strncmp (argv[i], "--trim=", 7) == 0) {
 	    timeout = atoi (argv[i] + 7);
+	} else if (strcmp (argv[i], "--version")) {
+	    printf ("%s: version %s\n", argv[0], __DATE__);
+	    exit (0);
+	} else if (strcmp (argv[i], "--help")) {
+	    printf ("usage: %s [--trim=max.seconds] < in > out\n", argv[0]);
+	    exit (0);
 	}
     }
 


More information about the cairo-commit mailing list