From 3d5a574e3b4e668f3d53625bc5116b71b78c10ee Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 7 May 2012 00:29:36 +0200 Subject: [PATCH] Made listing the default for modes test. --- tests/modes.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/modes.c b/tests/modes.c index 07407e13..67b579c5 100644 --- a/tests/modes.c +++ b/tests/modes.c @@ -38,15 +38,13 @@ static GLFWwindow window = NULL; enum Mode { - NO_MODE, LIST_MODE, TEST_MODE }; static void usage(void) { - printf("Usage: modes -l\n"); - printf(" modes -t\n"); + printf("Usage: modes [-t]\n"); printf(" modes -h\n"); } @@ -170,19 +168,16 @@ static void test_modes(GLFWvidmode* modes, int count) int main(int argc, char** argv) { - int ch, found, count = 0, mode = NO_MODE; + int ch, found, count = 0, mode = LIST_MODE; GLFWvidmode* modes = NULL; - while ((ch = getopt(argc, argv, "lth")) != -1) + while ((ch = getopt(argc, argv, "th")) != -1) { switch (ch) { case 'h': usage(); exit(EXIT_SUCCESS); - case 'l': - mode = LIST_MODE; - break; case 't': mode = TEST_MODE; break;