Commit 3c4442a2aa24da0f250bc1f6c4b72c1e1f4fd7ed

Carlos Martín Nieto 2015-06-07T10:03:31

Merge pull request #3179 from arielb2/master print_usage functions is defined but not used

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/examples/describe.c b/examples/describe.c
index f7b4b1c..4cdf61f 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();
 		}
 	}