diff options
author | Ariel O. Barria <ariel.barria@gmail.com> | 2015-06-03 14:54:26 -0500 |
---|---|---|
committer | Ariel O. Barria <ariel.barria@gmail.com> | 2015-06-03 14:54:35 -0500 |
commit | 9334c86f49ae1394d106fcc18784b132070c4cd2 (patch) | |
tree | 21d3f79dcb139cf35dd3f1981254968b96dec4fe | |
parent | be5fda75879f7ed89c7a72adc257872d1ea13803 (diff) | |
download | libgit2-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
-rw-r--r-- | examples/describe.c | 2 |
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(); } } |