diff options
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -766,7 +766,7 @@ void conf(struct ctx *c, int argc, char **argv) {"debug", no_argument, NULL, 'd' }, {"quiet", no_argument, NULL, 'q' }, {"foreground", no_argument, NULL, 'f' }, - {"stderr", no_argument, &c->stderr, 1 }, + {"stderr", no_argument, NULL, 'e' }, {"help", no_argument, NULL, 'h' }, {"socket", required_argument, NULL, 's' }, {"ns-ifname", required_argument, NULL, 'I' }, @@ -889,6 +889,14 @@ void conf(struct ctx *c, int argc, char **argv) c->debug = 1; c->foreground = 1; break; + case 'e': + if (c->stderr) { + err("Multiple --stderr options given"); + usage(argv[0]); + } + + c->stderr = 1; + break; case 'q': if (c->quiet) { err("Multiple --quiet options given"); |