]> xenbits.xensource.com Git - xenclient/toolstack.git/commitdiff
fix usage printing
authorPrashanth Mundkur <prashanth.mundkur@citrix.com>
Mon, 4 May 2009 23:53:55 +0000 (16:53 -0700)
committerPrashanth Mundkur <prashanth.mundkur@citrix.com>
Mon, 4 May 2009 23:53:55 +0000 (16:53 -0700)
libs/json/parser_tests/test_parser.ml

index 1f620c5100560056827bec662816989e712f1597..8ab861e5cb0ad365c6f6d199419665de6e4ea15f 100644 (file)
@@ -22,7 +22,7 @@ let parse_args () =
        Arg.parse (Arg.align options) (fun f -> file := Some f) usage;
        match !file with
        | Some f -> f
-       | None -> Printf.eprintf "%s\n" usage; exit 1
+       | None -> Arg.usage (Arg.align options) usage; exit 1
 
 let read_whole_file ic =
        let buf = Buffer.create 512 in