diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-17 13:45:37 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-01-07 10:54:28 +0000 |
commit | d1ef291435c5e9f6749601c2a03002b112daf66c (patch) | |
tree | 91613a512d99b030329d4da88951bcad915e6ad9 | |
parent | a163aa08678d79d56ac79454c85721c4bf965294 (diff) |
csi-trace: Add an unhelpful help message.
-rw-r--r-- | csi-trace.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); } } |