[thin_ll_dump] Fix option -m to accept optional argument

This commit is contained in:
Ming-Hung Tsai 2016-03-19 13:59:38 +08:00
parent 220ece1dc8
commit 055623b90f

View File

@ -371,7 +371,7 @@ thin_ll_dump_cmd::usage(ostream &out) const {
int
thin_ll_dump_cmd::run(int argc, char **argv)
{
const char shortopts[] = "hm:o:V";
const char shortopts[] = "hm::o:V";
const struct option longopts[] = {
{ "help", no_argument, NULL, 'h'},
{ "metadata-snap", optional_argument, NULL, 'm'},