conf: Fix getopt_long() return value for --quiet
Only the short version actually worked. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
2da54a0292
commit
40767a0da3
1 changed files with 1 additions and 1 deletions
2
conf.c
2
conf.c
|
@ -914,7 +914,7 @@ void conf(struct ctx *c, int argc, char **argv)
|
||||||
{
|
{
|
||||||
struct option options[] = {
|
struct option options[] = {
|
||||||
{"debug", no_argument, NULL, 'd' },
|
{"debug", no_argument, NULL, 'd' },
|
||||||
{"quiet", no_argument, NULL, 1 },
|
{"quiet", no_argument, NULL, 'q' },
|
||||||
{"foreground", no_argument, NULL, 'f' },
|
{"foreground", no_argument, NULL, 'f' },
|
||||||
{"stderr", no_argument, &c->stderr, 1 },
|
{"stderr", no_argument, &c->stderr, 1 },
|
||||||
{"help", no_argument, NULL, 'h' },
|
{"help", no_argument, NULL, 'h' },
|
||||||
|
|
Loading…
Reference in a new issue