Changeset: 0597900f5946 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0597900f5946
Modified Files:
tools/mserver/mserver5.c
Branch: Apr2019
Log Message:
Use symbolic name for value.
diffs (56 lines):
diff --git a/tools/mserver/mserver5.c b/tools/mserver/mserver5.c
--- a/tools/mserver/mserver5.c
+++ b/tools/mserver/mserver5.c
@@ -249,29 +249,29 @@ main(int argc, char **av)
char *dbpath = NULL;
char *dbextra = NULL;
static struct option long_options[] = {
- { "config", 1, 0, 'c' },
- { "dbpath", 1, 0, 0 },
- { "dbextra", 1, 0, 0 },
- { "daemon", 1, 0, 0 },
- { "debug", 2, 0, 'd' },
- { "help", 0, 0, '?' },
- { "version", 0, 0, 0 },
- { "readonly", 0, 0, 'r' },
- { "single-user", 0, 0, 0 },
- { "set", 1, 0, 's' },
- { "threads", 0, 0, 0 },
- { "memory", 0, 0, 0 },
- { "properties", 0, 0, 0 },
- { "io", 0, 0, 0 },
- { "transactions", 0, 0, 0 },
- { "trace", 2, 0, 't' },
- { "modules", 0, 0, 0 },
- { "algorithms", 0, 0, 0 },
- { "optimizers", 0, 0, 0 },
- { "performance", 0, 0, 0 },
- { "forcemito", 0, 0, 0 },
- { "heaps", 0, 0, 0 },
- { 0, 0, 0, 0 }
+ { "config", required_argument, NULL, 'c' },
+ { "dbpath", required_argument, NULL, 0 },
+ { "dbextra", required_argument, NULL, 0 },
+ { "daemon", required_argument, NULL, 0 },
+ { "debug", optional_argument, NULL, 'd' },
+ { "help", no_argument, NULL, '?' },
+ { "version", no_argument, NULL, 0 },
+ { "readonly", no_argument, NULL, 'r' },
+ { "single-user", no_argument, NULL, 0 },
+ { "set", required_argument, NULL, 's' },
+ { "threads", no_argument, NULL, 0 },
+ { "memory", no_argument, NULL, 0 },
+ { "properties", no_argument, NULL, 0 },
+ { "io", no_argument, NULL, 0 },
+ { "transactions", no_argument, NULL, 0 },
+ { "trace", optional_argument, NULL, 't' },
+ { "modules", no_argument, NULL, 0 },
+ { "algorithms", no_argument, NULL, 0 },
+ { "optimizers", no_argument, NULL, 0 },
+ { "performance", no_argument, NULL, 0 },
+ { "forcemito", no_argument, NULL, 0 },
+ { "heaps", no_argument, NULL, 0 },
+ { NULL, 0, NULL, 0 }
};
#if defined(_MSC_VER) && defined(__cplusplus)
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list