aboutgitcodebugslistschat
path: root/conf.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-10-26 16:48:42 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-10-27 00:17:56 +0200
commit74029516585dd78cc780e135a8c29d545e7e790e (patch)
treec953192d6bea691673ef651278a3dc721c1bfd8a /conf.c
parente4df8b084490dab4ace46230e923a79c2cba79a9 (diff)
downloadpasst-74029516585dd78cc780e135a8c29d545e7e790e.tar
passt-74029516585dd78cc780e135a8c29d545e7e790e.tar.gz
passt-74029516585dd78cc780e135a8c29d545e7e790e.tar.bz2
passt-74029516585dd78cc780e135a8c29d545e7e790e.tar.lz
passt-74029516585dd78cc780e135a8c29d545e7e790e.tar.xz
passt-74029516585dd78cc780e135a8c29d545e7e790e.tar.zst
passt-74029516585dd78cc780e135a8c29d545e7e790e.zip
conf, passt.1: Don't imply --foreground with --debug
Having -f implied by -d (and --trace) usually saves some typing, but debug mode in background (with a log file) is quite useful if pasta is started by Podman, and is probably going to be handy for passt with libvirt later, too. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/conf.c b/conf.c
index 598c711..90214f5 100644
--- a/conf.c
+++ b/conf.c
@@ -636,7 +636,7 @@ static void usage(const char *name)
info("");
- info( " -d, --debug Be verbose, don't run in background");
+ info( " -d, --debug Be verbose");
info( " --trace Be extra verbose, implies --debug");
info( " -q, --quiet Don't print informational messages");
info( " -f, --foreground Don't run in background");
@@ -1192,7 +1192,7 @@ void conf(struct ctx *c, int argc, char **argv)
usage(argv[0]);
}
- c->trace = c->debug = c->foreground = 1;
+ c->trace = c->debug = 1;
break;
case 12:
if (runas) {
@@ -1233,7 +1233,6 @@ void conf(struct ctx *c, int argc, char **argv)
}
c->debug = 1;
- c->foreground = 1;
break;
case 'e':
if (logfile) {
@@ -1275,7 +1274,7 @@ void conf(struct ctx *c, int argc, char **argv)
c->quiet = 1;
break;
case 'f':
- if (c->foreground && !c->debug) {
+ if (c->foreground) {
err("Multiple --foreground options given");
usage(argv[0]);
}