From d65b67fd5eb4f0cffbf411bd4dc569d8d4edbe33 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Fri, 2 Mar 2012 13:10:53 +0000 Subject: [PATCH] another -q patch --- thin_check.cc | 4 ++-- thin_dump.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/thin_check.cc b/thin_check.cc index 491057f..e8eac42 100644 --- a/thin_check.cc +++ b/thin_check.cc @@ -61,7 +61,7 @@ int main(int argc, char **argv) { int c; bool quiet = false; - const char shortopts[] = "hV"; + const char shortopts[] = "qhV"; const struct option longopts[] = { { "quiet", no_argument, NULL, 'q'}, { "help", no_argument, NULL, 'h'}, @@ -85,7 +85,7 @@ int main(int argc, char **argv) } } - if (argc != 2) { + if (argc == 1) { usage(basename(argv[0])); exit(1); } diff --git a/thin_dump.cc b/thin_dump.cc index 25b9eb4..0d11915 100644 --- a/thin_dump.cc +++ b/thin_dump.cc @@ -71,7 +71,7 @@ int main(int argc, char **argv) { int c; bool repair = false; - const char shortopts[] = "hf:i:V"; + const char shortopts[] = "hf:i:rV"; string filename, format = "xml"; const struct option longopts[] = { { "help", no_argument, NULL, 'h'},