From 86071ec611fdaad93e7fe0e1a24007bdb8dc6fda Mon Sep 17 00:00:00 2001 From: katherine Date: Sun, 25 Mar 2018 10:22:02 -0700 Subject: fix error printing --- doc/example.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/example.c') diff --git a/doc/example.c b/doc/example.c index 50d8173..2c21341 100644 --- a/doc/example.c +++ b/doc/example.c @@ -35,9 +35,10 @@ int main(int argc, char **argv) result = simple_opt_parse(argc, argv, options); - /* catch any errors and print a default result */ + /* catch any errors and print a default error message. you can do this bit + * yourself, if you'd like more control of the output */ if (result.result_type != SIMPLE_OPT_RESULT_SUCCESS) { - simple_opt_print_error(stderr, argv[0], options, result); + simple_opt_print_error(stderr, argv[0], result); return 1; } -- cgit v1.2.3