[PATCH 07/12] weston-cliptest --help works. You must use -b to run benchmark
Bill Spitzak
spitzak at gmail.com
Fri Aug 8 12:59:56 PDT 2014
---
clients/cliptest.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/clients/cliptest.c b/clients/cliptest.c
index a1928f4..51a4075 100644
--- a/clients/cliptest.c
+++ b/clients/cliptest.c
@@ -893,8 +893,12 @@ main(int argc, char *argv[])
struct display *d;
struct cliptest *cliptest;
- if (argc > 1)
- return benchmark();
+ if (argc > 1) {
+ if (argc == 2 && !strcmp(argv[1],"-b"))
+ return benchmark();
+ printf("Usage: %s [OPTIONS]\n -b run benchmark\n", argv[0]);
+ return 1;
+ }
d = display_create(&argc, argv);
if (d == NULL) {
--
1.7.9.5
More information about the wayland-devel
mailing list