From 43b80b29dd8aa8f244a516fcf76059cf121b0b43 Mon Sep 17 00:00:00 2001 From: onefang Date: Tue, 17 Aug 2021 21:21:08 +1000 Subject: Add verbose mode. --- src/sledjchisl/sledjchisl.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 112c297..21e69f4 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -3,16 +3,18 @@ * Copyright 2020 David Seikel * Not in SUSv4. An entirely new invention, thus no web site either. -USE_SLEDJCHISL(NEWTOY(sledjchisl, "?qma", TOYFLAG_USR|TOYFLAG_BIN)) +USE_SLEDJCHISL(NEWTOY(sledjchisl, "?vqma", TOYFLAG_USR|TOYFLAG_BIN)) config SLEDJCHISL bool "sledjchisl" default y help - usage: sledjchisl [-qma] [mode [name]] + usage: sledjchisl [-vqma] [mode [name]] opensim-SC management system. + -v verbose mode. + Mode selects what sledjchisl will do - create "Sim Name" x,y size will create a sim. @@ -533,7 +535,7 @@ float loadAverageInc = 0.7; int simTimeOut = 45; int bulkSims = 0; boolean DEBUG = FALSE; -boolean VERBOSE = TRUE; +boolean VERBOSE = FALSE; qhashtbl_t *mimeTypes; qlist_t *dbRequests; @@ -7501,6 +7503,9 @@ void sledjchisl_main(void) int status, result, i; void *vd; + if(FLAG(v)) + VERBOSE = TRUE; + V("SledjChisl arguments - %d %d", toys.optc, toys.optflags); for (i = 0; i < toys.optc; i++) V(" argument %d %s", i, toys.optargs[i] ); -- cgit v1.1