summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fa2f4d3)
raw | patch | inline | side by side (parent: fa2f4d3)
author | Vincent Stehlé <v-stehle@ti.com> | |
Fri, 10 Aug 2012 12:00:51 +0000 (14:00 +0200) | ||
committer | Vincent Stehlé <v-stehle@ti.com> | |
Fri, 10 Aug 2012 17:56:48 +0000 (19:56 +0200) |
Signed-off-by: Vincent Stehlé <v-stehle@ti.com>
viddec3test.c | patch | blob | history |
diff --git a/viddec3test.c b/viddec3test.c
index c6bfbbdca206162ae0828ba315c2e795461e1b11..78a3548ebff3537b6f55a5f531ce5e67275c66a4 100644 (file)
--- a/viddec3test.c
+++ b/viddec3test.c
MSG("Usage: %s [OPTIONS] INFILE", name);
MSG("Test of viddec3 decoder.");
MSG("");
+ MSG("viddec3test options:");
+ MSG("\t-h, --help: Print this help and exit.");
+ MSG("");
disp_usage();
}
int i, n, first = 0, ndecoders = 0;
for (i = 1; i < argc; i++) {
- if (!strcmp(argv[i], "--")) {
+ if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "--help")) {
+ usage(argv[0]);
+ exit(0);
+
+ } else if (!strcmp(argv[i], "--")) {
argv[first] = argv[0];
decoders[ndecoders++] = decoder_open(i - first, &argv[first]);
first = i;