mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Man page and usage updates
* MDBOPTS=no_memo is not used anywhere; mark deprecated and print a warning if enabled * Mark MDBOPTS=use_index as experimental in the man pages * MDBOPTS need to be colon separated * Document new long forms of mdb-queries options
This commit is contained in:
@@ -62,7 +62,9 @@ load_options()
|
||||
fprintf(stderr, "The 'use_index' argument was supplied to MDBOPTS environment variable. However, this feature requires the libmswstr library, which was not found when libmdb was compiled. As a result, the 'use_index' argument will be ignored.\n\nTo enable indexes, you will need to download libmswstr from https://github.com/leecher1337/libmswstr and then recompile libmdb. Note that the 'use_index' feature is largely untested, and may have unexpected results.\n\nTo suppress this warning, run the program again after removing the 'use_index' argument from the MDBOPTS environment variable.\n");
|
||||
#endif
|
||||
}
|
||||
if (!strcmp(opt, "no_memo")) opts |= MDB_NO_MEMO;
|
||||
if (!strcmp(opt, "no_memo")) {
|
||||
fprintf(stderr, "The 'no_memo' argument was supplied to MDBOPTS environment variable. This argument is deprecated, and has no effect.\n\nTo suppress this warning, run the program again after removing the 'no_memo' argument from the MDBOPTS environment variable.\n");
|
||||
}
|
||||
if (!strcmp(opt, "debug_like")) opts |= MDB_DEBUG_LIKE;
|
||||
if (!strcmp(opt, "debug_write")) opts |= MDB_DEBUG_WRITE;
|
||||
if (!strcmp(opt, "debug_usage")) opts |= MDB_DEBUG_USAGE;
|
||||
|
||||
@@ -75,7 +75,7 @@ int main (int argc, char **argv) {
|
||||
GOptionEntry entries[] = {
|
||||
{"list", 'L', 0, G_OPTION_ARG_NONE, &list_only, "List queries in the database (default if no query name is passed)", NULL},
|
||||
{"newline", '1', 0, G_OPTION_ARG_NONE, &line_break, "Use newline as the delimiter (used in conjunction with listing)", NULL},
|
||||
{"delimiter", 'd', 0, G_OPTION_ARG_STRING, &delimiter, "Specify delimiter to use", "delimiter"},
|
||||
{"delimiter", 'd', 0, G_OPTION_ARG_STRING, &delimiter, "Specify delimiter to use", "delim"},
|
||||
{NULL}
|
||||
};
|
||||
opt_context = g_option_context_new("<file> <query name> - list or export queries from an Access database");
|
||||
|
||||
Reference in New Issue
Block a user