From 785e68bb0dc62dad2e7af82afc5b3923f54d90d8 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 3 Nov 2013 13:38:45 +0100 Subject: [PATCH] Added flag descriptions to glfwinfo -h. --- tests/glfwinfo.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/tests/glfwinfo.c b/tests/glfwinfo.c index c99a65a7..ed7b9df6 100644 --- a/tests/glfwinfo.c +++ b/tests/glfwinfo.c @@ -54,9 +54,16 @@ static void usage(void) { printf("Usage: glfwinfo [-h] [-a API] [-m MAJOR] [-n MINOR] [-d] [-l] [-f] [-p PROFILE] [-r STRATEGY]\n"); - printf("available APIs: " API_OPENGL " " API_OPENGL_ES "\n"); - printf("available profiles: " PROFILE_NAME_CORE " " PROFILE_NAME_COMPAT "\n"); - printf("available strategies: " STRATEGY_NAME_NONE " " STRATEGY_NAME_LOSE "\n"); + printf("Options:\n"); + printf(" -a the client API to use (" API_OPENGL " or " API_OPENGL_ES ")\n"); + printf(" -d request a debug context\n"); + printf(" -f require a forward-compatible context\n"); + printf(" -h show this help\n"); + printf(" -l list all client API extensions after context creation\n"); + printf(" -m the major number of the requred client API version\n"); + printf(" -n the minor number of the requred client API version\n"); + printf(" -p the OpenGL profile to use (" PROFILE_NAME_CORE " or " PROFILE_NAME_COMPAT ")\n"); + printf(" -r the robustness strategy to use (" STRATEGY_NAME_NONE " or " STRATEGY_NAME_LOSE ")\n"); } static void error_callback(int error, const char* description)