Don't exit with an error when called with -h
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 3 Jun 2010 12:00:24 +0000 (14:00 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 3 Jun 2010 12:00:24 +0000 (14:00 +0200)
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
options.c

index 5cc13f2..5e4c9f7 100644 (file)
--- a/options.c
+++ b/options.c
@@ -86,7 +86,7 @@ int parse_cmdline(int argc, char **argv)
 
                case 'h':
                        usage(argv[0]);
-                       return 1;
+                       exit(0);
 
                case 'i':
                        media_opts.interactive = 1;