diff --git a/src/visualinfo.c b/src/visualinfo.c index 4fb200e..56350cf 100644 --- a/src/visualinfo.c +++ b/src/visualinfo.c @@ -104,9 +104,7 @@ main (int argc, char** argv) fprintf(stderr, " -pf : use given pixelformat\n"); fprintf(stderr, " -h: this screen\n"); #else - fprintf(stderr, "Usage: visualinfo [-a] [-s] [-h] [-display ] [-visual ]\n"); - fprintf(stderr, " -a: show all visuals\n"); - fprintf(stderr, " -s: display to stdout instead of visualinfo.txt (Windows only)\n"); + fprintf(stderr, "Usage: visualinfo [-h] [-display ] [-visual ]\n"); fprintf(stderr, " -h: this screen\n"); fprintf(stderr, " -display : use given display\n"); fprintf(stderr, " -visual : use given visual\n"); @@ -1163,6 +1161,10 @@ GLboolean ParseArgs (int argc, char** argv) if (++p >= argc) return GL_TRUE; visual = (int)strtol(argv[p], NULL, 0); } + else if (!strcmp(argv[p], "-h")) + { + return GL_TRUE; + } else return GL_TRUE; #endif