From 13e339c1a42e996e9620e4326fdbee4d3734f55d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nirgal=20Vourg=C3=A8re?= Date: Mon, 12 Jan 2015 18:17:50 +0100 Subject: [PATCH] Clarify usage of --no-comments in mdb-schema --- doc/mdb-schema.txt | 2 ++ src/util/mdb-schema.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/mdb-schema.txt b/doc/mdb-schema.txt index f61900c..a285954 100644 --- a/doc/mdb-schema.txt +++ b/doc/mdb-schema.txt @@ -21,6 +21,8 @@ OPTIONS --no-default-values Don't issue DEFAULT values. This is the default. --not-empty Issue CHECK <> '' constraints. --no-not-empty Don't issue CHECK <> '' constraints. This is the default. + --comments Issue COMMENT ON statements with column/table descriptions. This is the default, but it's not supported by all backends. + --no-comments Don't issue COMMENT ON statements. --indexes Export INDEXes. This is the default. --no-indexes Don't export INDEXes. --relations Export foreign keys constraints. This is the default. diff --git a/src/util/mdb-schema.c b/src/util/mdb-schema.c index 4a13104..1ec3bec 100644 --- a/src/util/mdb-schema.c +++ b/src/util/mdb-schema.c @@ -49,8 +49,8 @@ main (int argc, char **argv) { "no-default-values", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &opt_def_values, "Don't include default values", NULL}, { "not-empty", 0, 0, G_OPTION_ARG_NONE, &opt_not_empty, "Include not empty constraints", NULL}, { "no-not_empty", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &opt_not_empty, "Don't include not empty constraints", NULL}, - { "comments", 0, 0, G_OPTION_ARG_NONE, &opt_comments, "Include comments", NULL}, - { "no-comments", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &opt_comments, "Don't include comments", NULL}, + { "comments", 0, 0, G_OPTION_ARG_NONE, &opt_comments, "Include COMMENT ON statements", NULL}, + { "no-comments", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &opt_comments, "Don't include COMMENT statements.", NULL}, { "indexes", 0, 0, G_OPTION_ARG_NONE, &opt_indexes, "Include indexes", NULL}, { "no-indexes", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &opt_indexes, "Don't include indexes", NULL}, { "relations", 0, 0, G_OPTION_ARG_NONE, &opt_relations, "Include foreign key constraints", NULL},