more diags
[citadel.git] / citadel / server_main.c
index 8df0f343a249fd01525e917530ddd2530d1f1569..3e94a8ab124fa6e66d38fb3f37bd58434f1105c9 100644 (file)
@@ -94,7 +94,7 @@ int main(int argc, char **argv)
        InitializeMasterTSD();
 
        /* parse command-line arguments */
-       while ((a=getopt(argc, argv, "l:dh:x:t:B:Dru:s")) != EOF) switch(a) {
+       while ((a=getopt(argc, argv, "l:dh:x:t:B:Dru:s:")) != EOF) switch(a) {
 
                case 'l':
                        safestrncpy(facility, optarg, sizeof(facility));
@@ -155,9 +155,9 @@ int main(int argc, char **argv)
                        }
                        break;
 
-               /* -s tells the server to suppress fixing any discrepancies found during sanity checks, but exit after those checks complete */
+               /* -s tells the server to behave differently during sanity checks */
                case 's':
-                       sanity_diag_mode = 1;
+                       sanity_diag_mode = atoi(optarg);
                        break;
 
                default: