mirror of https://gitee.com/openkylin/enchant.git
Some improvements in options info
Forwarded: http://bugzilla.abisource.com/show_bug.cgi?id=13163 Bug: http://bugzilla.abisource.com/show_bug.cgi?id=13163 Bug-Debian: http://bugs.debian.org/546418 Bug-Debian: http://bugs.debian.org/647281 * Improve wording for -a option. * Add info about -d option to man page. * Add info about -h option to man page and usage. Gbp-Pq: Name 03_improve-options-info.diff
This commit is contained in:
parent
1794375430
commit
04b78fd394
|
@ -5,7 +5,7 @@ Enchant \- a spellchecker
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.ll +8
|
.ll +8
|
||||||
.B enchant
|
.B enchant
|
||||||
[\fB\-a\fR] [\fB\-l\fR] [\fB\-L\fR] [\fB\-v\fR]
|
[\fB\-a\fR] [\fB\-d dict\fR] [\fB\-h\fR] [\fB\-l\fR] [\fB\-L\fR] [\fB\-v\fR]
|
||||||
.ll -8
|
.ll -8
|
||||||
.br
|
.br
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
|
@ -14,7 +14,13 @@ is an ispell-compatible spellchecker.
|
||||||
.SS OPTIONS
|
.SS OPTIONS
|
||||||
.TP
|
.TP
|
||||||
.B "\-a"
|
.B "\-a"
|
||||||
List alternatives.
|
List suggestions in ispell pipe mode format.
|
||||||
|
.TP
|
||||||
|
.B "\-d dict"
|
||||||
|
Use dictionary <dict>.
|
||||||
|
.TP
|
||||||
|
.B "\-h"
|
||||||
|
Show short help.
|
||||||
.TP
|
.TP
|
||||||
.B "\-l"
|
.B "\-l"
|
||||||
List only the misspellings.
|
List only the misspellings.
|
||||||
|
|
|
@ -71,8 +71,9 @@ static void
|
||||||
print_help (FILE * to, const char * prog)
|
print_help (FILE * to, const char * prog)
|
||||||
{
|
{
|
||||||
fprintf (to, "Usage: %s [options] -a|-d dict|-l|-L|-m|-v[v]|<file>\n", prog);
|
fprintf (to, "Usage: %s [options] -a|-d dict|-l|-L|-m|-v[v]|<file>\n", prog);
|
||||||
fprintf (to, "\t-a lists alternatives.\n");
|
fprintf (to, "\t-a lists suggestions in ispell pipe mode format.\n");
|
||||||
fprintf (to, "\t-d dict uses dictionary <dict>.\n");
|
fprintf (to, "\t-d dict uses dictionary <dict>.\n");
|
||||||
|
fprintf (to, "\t-h Show this help message.\n");
|
||||||
fprintf (to, "\t-l lists misspellings.\n");
|
fprintf (to, "\t-l lists misspellings.\n");
|
||||||
fprintf (to, "\t-m is ignored.\n");
|
fprintf (to, "\t-m is ignored.\n");
|
||||||
fprintf (to, "\t-L displays line numbers.\n");
|
fprintf (to, "\t-L displays line numbers.\n");
|
||||||
|
|
Loading…
Reference in New Issue