summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2020-02-29 09:51:12 -0800
committerRob Clark <robdclark@chromium.org>2020-03-07 09:22:17 -0800
commitf20dc5e295a8605bcbfacbbe487e5452a9e7e312 (patch)
treedfc73b62cc4984a88b8280ad2d6696fdf294669c
parent908ef39864442c0807954af5d3f88a3da1a6f8a5 (diff)
downloadkmscube-f20dc5e295a8605bcbfacbbe487e5452a9e7e312.tar.gz
clean up arg parsing
-rw-r--r--kmscube.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kmscube.c b/kmscube.c
index 6a1c2af..7c344ab 100644
--- a/kmscube.c
+++ b/kmscube.c
@@ -41,7 +41,7 @@ static const struct egl *egl;
static const struct gbm *gbm;
static const struct drm *drm;
-static const char *shortopts = "AD:M:m:V:v:";
+static const char *shortopts = "AD:f:M:m:s:V:v:";
static const struct option longopts[] = {
{"atomic", no_argument, 0, 'A'},
@@ -57,17 +57,17 @@ static const struct option longopts[] = {
static void usage(const char *name)
{
- printf("Usage: %s [-ADMmVv]\n"
+ printf("Usage: %s [-ADfMmsVv]\n"
"\n"
"options:\n"
" -A, --atomic use atomic modesetting and fencing\n"
" -D, --device=DEVICE use the given device\n"
+ " -f, --format=FOURCC framebuffer format\n"
" -M, --mode=MODE specify mode, one of:\n"
" smooth - smooth shaded cube (default)\n"
" rgba - rgba textured cube\n"
" nv12-2img - yuv textured (color conversion in shader)\n"
" nv12-1img - yuv textured (single nv12 texture)\n"
- " -f, --format=FOURCC framebuffer format\n"
" -m, --modifier=MODIFIER hardcode the selected modifier\n"
" -s, --samples=N use MSAA\n"
" -V, --video=FILE video textured cube\n"