summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAriel O. Barria <ariel.barria@gmail.com>2015-06-03 14:54:26 -0500
committerAriel O. Barria <ariel.barria@gmail.com>2015-06-03 14:54:35 -0500
commit9334c86f49ae1394d106fcc18784b132070c4cd2 (patch)
tree21d3f79dcb139cf35dd3f1981254968b96dec4fe /examples
parentbe5fda75879f7ed89c7a72adc257872d1ea13803 (diff)
downloadlibgit2-9334c86f49ae1394d106fcc18784b132070c4cd2.tar.gz
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
Diffstat (limited to 'examples')
-rw-r--r--examples/describe.c2
1 files changed, 2 insertions, 0 deletions
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();
}
}