diff options
author | Bill Spitzak <spitzak@gmail.com> | 2014-08-08 12:59:56 -0700 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2014-08-19 12:19:56 +0300 |
commit | 36bcf470540ec9741ba64a2a668bd647bd1d9e5c (patch) | |
tree | 321eacea0efcea327c66cc4696f05cdfb2f1f852 /clients | |
parent | 5cad843989cec84a770f82fb0fdbca46dca4f017 (diff) |
weston-cliptest --help works. You must use -b to run benchmark
Diffstat (limited to 'clients')
-rw-r--r-- | clients/cliptest.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/clients/cliptest.c b/clients/cliptest.c index a1928f40..612b3d13 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) { |