From 48c629b8a273d8e72d4e381fc86f930fc8bf14a7 Mon Sep 17 00:00:00 2001 From: Cyril Hrubis Date: Sun, 22 Dec 2013 18:54:51 +0100 Subject: [PATCH] spiv: Print backend help if only '-b help' was passed Signed-off-by: Cyril Hrubis --- demos/spiv/spiv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/demos/spiv/spiv.c b/demos/spiv/spiv.c index b3139d9e..33b0971c 100644 --- a/demos/spiv/spiv.c +++ b/demos/spiv/spiv.c @@ -752,6 +752,12 @@ int main(int argc, char *argv[]) params.sleep_ms = 1000 * config.slideshow_delay + 0.5; if (opts >= argc) { + + if (!strcmp(config.backend_init, "help")) { + init_backend(config.backend_init); + return 0; + } + fprintf(stderr, "Requires path to at least one image\n\n"); print_help(); return 1; -- 2.11.4.GIT