From 9334c86f49ae1394d106fcc18784b132070c4cd2 Mon Sep 17 00:00:00 2001 From: "Ariel O. Barria" Date: Wed, 3 Jun 2015 14:54:26 -0500 Subject: [PATCH] print_usage functions is defined but not used Use the previously created function to display a message when the arguments are not valid. ticket 3095 --- examples/describe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/describe.c b/examples/describe.c index f7b4b1c20..4cdf61f75 100644 --- a/examples/describe.c +++ b/examples/describe.c @@ -135,6 +135,8 @@ static void parse_options(describe_options *opts, int argc, char **argv) } else if (match_int_arg((int *)&opts->format_options.abbreviated_size, &args, "--abbrev", 0)) { } else if (match_int_arg((int *)&opts->describe_options.max_candidates_tags, &args, "--candidates", 0)) { } else if (match_str_arg(&opts->describe_options.pattern, &args, "--match")) { + } else { + print_usage(); } }