another -q patch

This commit is contained in:
Joe Thornber 2012-03-02 13:10:53 +00:00
parent fa2a5fe650
commit d65b67fd5e
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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'},