another -q patch
This commit is contained in:
@ -61,7 +61,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
bool quiet = false;
|
bool quiet = false;
|
||||||
const char shortopts[] = "hV";
|
const char shortopts[] = "qhV";
|
||||||
const struct option longopts[] = {
|
const struct option longopts[] = {
|
||||||
{ "quiet", no_argument, NULL, 'q'},
|
{ "quiet", no_argument, NULL, 'q'},
|
||||||
{ "help", no_argument, NULL, 'h'},
|
{ "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]));
|
usage(basename(argv[0]));
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
@ -71,7 +71,7 @@ int main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
int c;
|
int c;
|
||||||
bool repair = false;
|
bool repair = false;
|
||||||
const char shortopts[] = "hf:i:V";
|
const char shortopts[] = "hf:i:rV";
|
||||||
string filename, format = "xml";
|
string filename, format = "xml";
|
||||||
const struct option longopts[] = {
|
const struct option longopts[] = {
|
||||||
{ "help", no_argument, NULL, 'h'},
|
{ "help", no_argument, NULL, 'h'},
|
||||||
|
Reference in New Issue
Block a user