From 055623b90f7ff7b65c2b1b15ec142d41ebb93708 Mon Sep 17 00:00:00 2001 From: Ming-Hung Tsai Date: Sat, 19 Mar 2016 13:59:38 +0800 Subject: [PATCH] [thin_ll_dump] Fix option -m to accept optional argument --- thin-provisioning/thin_ll_dump.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thin-provisioning/thin_ll_dump.cc b/thin-provisioning/thin_ll_dump.cc index 7f7b14c..2a20237 100644 --- a/thin-provisioning/thin_ll_dump.cc +++ b/thin-provisioning/thin_ll_dump.cc @@ -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'},