aboutsummaryrefslogtreecommitdiff
path: root/xmlcatalog.c
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2004-10-06 16:38:01 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2004-10-06 16:38:01 +0000
commitb7b54de6c69074c9f5a81ad71cfa12f7005f2505 (patch)
tree16eb15bfdefd1509968bdd838114f0e31630c03a /xmlcatalog.c
parent22cdb842fdc74bc4b5133f5c03d7c85c9fef7d7f (diff)
downloadlibxml2-b7b54de6c69074c9f5a81ad71cfa12f7005f2505.tar.gz
added code to handle <group>, including dumping to output (bug 151924).
* catalog.c: added code to handle <group>, including dumping to output (bug 151924). * xmlcatalog.c, xmlstring.c, parser.c: minor compiler warning cleanup (no change to logic)
Diffstat (limited to 'xmlcatalog.c')
-rw-r--r--xmlcatalog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmlcatalog.c b/xmlcatalog.c
index 4c30d754..0597e888 100644
--- a/xmlcatalog.c
+++ b/xmlcatalog.c
@@ -307,6 +307,7 @@ static void usershell(void) {
* *
************************************************************************/
static void usage(const char *name) {
+ /* split into 2 printf's to avoid overly long string (gcc warning) */
printf("\
Usage : %s [options] catalogfile entities...\n\
\tParse the catalog file and query it for the entities\n\
@@ -314,13 +315,14 @@ Usage : %s [options] catalogfile entities...\n\
\t--shell : run a shell allowing interactive queries\n\
\t--create : create a new catalog\n\
\t--add 'type' 'orig' 'replace' : add an XML entry\n\
-\t--add 'entry' : add an SGML entry\n\
+\t--add 'entry' : add an SGML entry\n", name);
+ printf("\
\t--del 'values' : remove values\n\
\t--noout: avoid dumping the result on stdout\n\
\t used with --add or --del, it saves the catalog changes\n\
\t and with --sgml it automatically updates the super catalog\n\
\t--no-super-update: do not update the SGML super catalog\n\
-\t-v --verbose : provide debug informations\n", name);
+\t-v --verbose : provide debug informations\n");
}
int main(int argc, char **argv) {
int i;