diff options
author | Jordan Justen <jljusten@gmail.com> | 2014-01-20 14:27:51 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2014-01-25 14:00:52 -0800 |
commit | e6e5278c4167052b6345dada10ffb08681ddafa4 (patch) | |
tree | 294902683584a58403f9a71b6a1e4a254aed1d4f | |
parent | 0ccb8b74f91206fa6e778b0d3554c092fd0607a6 (diff) |
wflinfo: Clean usage text
Cleaning up and re-organizing to allow short version
parameters to be added.
Signed-off-by: Jordan Justen <jljusten@gmail.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r-- | src/utils/wflinfo.c | 37 |
1 files changed, 22 insertions, 15 deletions
diff --git a/src/utils/wflinfo.c b/src/utils/wflinfo.c index 1257666..a030520 100644 --- a/src/utils/wflinfo.c +++ b/src/utils/wflinfo.c @@ -54,24 +54,26 @@ removeXcodeArgs(int *argc, char **argv); #include "waffle.h" static const char *usage_message = - "usage:\n" - " wflinfo --platform=android|cgl|gbm|glx|wayland|x11_egl\n" - " --api=gl|gles1|gles2|gles3\n" - " [--version=MAJOR.MINOR]\n" - " [--profile=core|compat|none]\n" - " [--forward-compatible]\n" - " [--debug-context]\n" - " [--verbose]\n" + "Usage:\n" + " wflinfo <Required Parameters> [Options]\n" "\n" - "examples:\n" - " wflinfo --platform=glx --api=gl\n" - " wflinfo --platform=x11_egl --api=gl --version=3.2 --profile=core\n" - " wflinfo --platform=wayland --api=gles3\n" - "\n" - "description:\n" + "Description:\n" " Create an OpenGL or OpenGL ES context and print information about it.\n" "\n" - "options:\n" + "Required Parameters:\n" + " --platform\n" + " One of: android, cgl, gbm, glx, wayland or x11_egl\n" + "\n" + " --api\n" + " One of: gl, gles1, gles2 or gles3\n" + "\n" + "Options:\n" + " --version\n" + " For example --api=gl --version=3.2 would request OpenGL 3.2.\n" + "\n" + " --profile\n" + " One of: core, compat or none\n" + "\n" " --verbose\n" " Print more information.\n" "\n" @@ -80,6 +82,11 @@ static const char *usage_message = "\n" " --debug-context\n" " Create a debug context.\n" + "\n" + "Examples:\n" + " wflinfo --platform=glx --api=gl\n" + " wflinfo --platform=x11_egl --api=gl --version=3.2 --profile=core\n" + " wflinfo --platform=wayland --api=gles3\n" ; enum { |