aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authoronefang2021-08-17 21:21:08 +1000
committeronefang2021-08-17 21:21:08 +1000
commit43b80b29dd8aa8f244a516fcf76059cf121b0b43 (patch)
tree5f6891ee87462c0165caff88d7b10ffb006410c2
parentMySQL default character set to utfmb4. (diff)
downloadopensim-SC-43b80b29dd8aa8f244a516fcf76059cf121b0b43.zip
opensim-SC-43b80b29dd8aa8f244a516fcf76059cf121b0b43.tar.gz
opensim-SC-43b80b29dd8aa8f244a516fcf76059cf121b0b43.tar.bz2
opensim-SC-43b80b29dd8aa8f244a516fcf76059cf121b0b43.tar.xz
Add verbose mode.
-rw-r--r--src/sledjchisl/sledjchisl.c11
1 files 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 @@
3 * Copyright 2020 David Seikel <sledjchisl@sledjhamr.org> 3 * Copyright 2020 David Seikel <sledjchisl@sledjhamr.org>
4 * Not in SUSv4. An entirely new invention, thus no web site either. 4 * Not in SUSv4. An entirely new invention, thus no web site either.
5 5
6USE_SLEDJCHISL(NEWTOY(sledjchisl, "?qma", TOYFLAG_USR|TOYFLAG_BIN)) 6USE_SLEDJCHISL(NEWTOY(sledjchisl, "?vqma", TOYFLAG_USR|TOYFLAG_BIN))
7 7
8config SLEDJCHISL 8config SLEDJCHISL
9 bool "sledjchisl" 9 bool "sledjchisl"
10 default y 10 default y
11 help 11 help
12 usage: sledjchisl [-qma] [mode [name]] 12 usage: sledjchisl [-vqma] [mode [name]]
13 13
14 opensim-SC management system. 14 opensim-SC management system.
15 15
16 -v verbose mode.
17
16 Mode selects what sledjchisl will do - 18 Mode selects what sledjchisl will do -
17 create "Sim Name" x,y size 19 create "Sim Name" x,y size
18 will create a sim. 20 will create a sim.
@@ -533,7 +535,7 @@ float loadAverageInc = 0.7;
533int simTimeOut = 45; 535int simTimeOut = 45;
534int bulkSims = 0; 536int bulkSims = 0;
535boolean DEBUG = FALSE; 537boolean DEBUG = FALSE;
536boolean VERBOSE = TRUE; 538boolean VERBOSE = FALSE;
537qhashtbl_t *mimeTypes; 539qhashtbl_t *mimeTypes;
538qlist_t *dbRequests; 540qlist_t *dbRequests;
539 541
@@ -7501,6 +7503,9 @@ void sledjchisl_main(void)
7501 int status, result, i; 7503 int status, result, i;
7502 void *vd; 7504 void *vd;
7503 7505
7506 if(FLAG(v))
7507 VERBOSE = TRUE;
7508
7504 V("SledjChisl arguments - %d %d", toys.optc, toys.optflags); 7509 V("SledjChisl arguments - %d %d", toys.optc, toys.optflags);
7505 for (i = 0; i < toys.optc; i++) 7510 for (i = 0; i < toys.optc; i++)
7506 V(" argument %d %s", i, toys.optargs[i] ); 7511 V(" argument %d %s", i, toys.optargs[i] );