mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 18:56:59 +00:00
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
This commit is contained in:
parent
be5fda7587
commit
9334c86f49
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user