From e3b65ee06808cda296215b88111a259a200cc37c Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Sat, 2 Dec 2006 15:09:57 -0800 Subject: [PATCH] Fix fc-cat documentation (bug 8935). Adapt documentation to reality. (1) The fc-cat usage message should reflect the options accepted by the program. (2) The fc-cat.1 manpage was fairly broken (unreadable). --- fc-cat/fc-cat.c | 9 +++++++-- fc-cat/fc-cat.sgml | 26 +++++++++++++++++++++++--- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/fc-cat/fc-cat.c b/fc-cat/fc-cat.c index 476798e..a2c238c 100644 --- a/fc-cat/fc-cat.c +++ b/fc-cat/fc-cat.c @@ -149,10 +149,11 @@ static void usage (char *program) { #if HAVE_GETOPT_LONG - fprintf (stderr, "usage: %s [-V?] [--version] [--help] {*-%s.cache-2|directory}...\n", + fprintf (stderr, "usage: %s [-rv] [--recurse] [--verbose] [*-%s.cache-2|directory]...\n", program, FC_ARCHITECTURE); + fprintf (stderr, " %s [-V?] [--version] [--help]\n", program); #else - fprintf (stderr, "usage: %s [-fsvV?] {*-%s.cache-2|directory}...\n", + fprintf (stderr, "usage: %s [-rvV?] [*-%s.cache-2|directory]...\n", program, FC_ARCHITECTURE); #endif fprintf (stderr, "Reads font information cache from:\n"); @@ -160,9 +161,13 @@ usage (char *program) fprintf (stderr, " 2) related to a particular font directory\n"); fprintf (stderr, "\n"); #if HAVE_GETOPT_LONG + fprintf (stderr, " -r, --recurse recurse into subdirectories\n"); + fprintf (stderr, " -v, --verbose be verbose\n"); fprintf (stderr, " -V, --version display font config version and exit\n"); fprintf (stderr, " -?, --help display this help and exit\n"); #else + fprintf (stderr, " -r (recurse) recurse into subdirectories\n"); + fprintf (stderr, " -v (verbose) be verbose\n"); fprintf (stderr, " -V (version) display font config version and exit\n"); fprintf (stderr, " -? (help) display this help and exit\n"); #endif diff --git a/fc-cat/fc-cat.sgml b/fc-cat/fc-cat.sgml index 812b0fa..cc06a75 100644 --- a/fc-cat/fc-cat.sgml +++ b/fc-cat/fc-cat.sgml @@ -61,11 +61,14 @@ manpage.1: manpage.sgml - &dhpackage; < fonts-cache-2-file > + &dhpackage; - + + + + @@ -73,7 +76,8 @@ manpage.1: manpage.sgml DESCRIPTION - &dhpackage; reads a font information cache file + &dhpackage; reads the font information from + cache files or related to font directories and emits it in ASCII form. @@ -86,6 +90,22 @@ manpage.1: manpage.sgml + + + + + Recurse into subdirectories. + + + + + + + + Be verbose. + + + -- 2.7.4