|
|
093822 |
Patch by John Bradshaw <john@johnbradshaw.org> for popt <= 1.16 which fixes some
|
|
|
093822 |
spelling mistakes in popt man page.
|
|
|
093822 |
|
|
|
093822 |
See https://bugzilla.redhat.com/show_bug.cgi?id=675567 for further details, please.
|
|
|
093822 |
This patch was proposed to upstream: http://rpm5.org/community/popt-devel/0263.html
|
|
|
093822 |
|
|
|
093822 |
Upstream already corrected some issues with http://rpm5.org/cvs/chngview?cn=16879
|
|
|
093822 |
and solved the last ones with http://rpm5.org/cvs/chngview?cn=17375 now. Thus popt
|
|
|
093822 |
1.17 should make this patch completely obsolete.
|
|
|
093822 |
|
|
|
093822 |
--- popt-1.16/popt.3 2009-07-25 20:52:36.000000000 +0200
|
|
|
093822 |
+++ popt-1.16/popt.3.man-page 2013-11-24 15:59:58.000000000 +0100
|
|
|
093822 |
@@ -200,7 +200,7 @@
|
|
|
093822 |
.RB "This macro includes another option table (via " POPT_ARG_INCLUDE_TABLE
|
|
|
093822 |
; see below) in the main one which provides the table entries for these
|
|
|
093822 |
.RB "arguments. When " --usage " or " --help " are passed to programs which
|
|
|
093822 |
-use popt's automatical help, popt displays the appropriate message on
|
|
|
093822 |
+use popt's automatic help, popt displays the appropriate message on
|
|
|
093822 |
stderr as soon as it finds the option, and exits the program with a
|
|
|
093822 |
return code of 0. If you want to use popt's automatic help generation in
|
|
|
093822 |
a different way, you need to explicitly add the option entries to your programs
|
|
|
093822 |
@@ -210,7 +210,7 @@
|
|
|
093822 |
the argument will not be shown in help output.
|
|
|
093822 |
.sp
|
|
|
093822 |
If the \fIargInfo\fR value is bitwise or'd with \fBPOPT_ARGFLAG_SHOW_DEFAULT\fR,
|
|
|
093822 |
-the inital value of the arg will be shown in help output.
|
|
|
093822 |
+the initial value of the arg will be shown in help output.
|
|
|
093822 |
.sp
|
|
|
093822 |
The final structure in the table should have all the pointer values set
|
|
|
093822 |
.RB "to " NULL " and all the arithmetic values set to 0, marking the "
|
|
|
093822 |
@@ -233,7 +233,7 @@
|
|
|
093822 |
contain a overall description of the option table being included.
|
|
|
093822 |
.sp
|
|
|
093822 |
The other special option table entry type tells popt to call a function (a
|
|
|
093822 |
-callback) when any option in that table is found. This is especially usefull
|
|
|
093822 |
+callback) when any option in that table is found. This is especially useful
|
|
|
093822 |
when included option tables are being used, as the program which provides
|
|
|
093822 |
the top-level option table doesn't need to be aware of the other options
|
|
|
093822 |
which are provided by the included table. When a callback is set for
|
|
|
093822 |
@@ -473,7 +473,7 @@
|
|
|
093822 |
.TP
|
|
|
093822 |
.B POPT_ERROR_BADNUMBER
|
|
|
093822 |
A conversion from a string to a number (int or long) failed due
|
|
|
093822 |
-to the string containing nonnumeric characters. This occurs when
|
|
|
093822 |
+to the string containing non-numeric characters. This occurs when
|
|
|
093822 |
.BR poptGetNextOpt() " is processing an argument of type "
|
|
|
093822 |
.BR POPT_ARG_INT ", " POPT_ARG_SHORT ", " POPT_ARG_LONG ", " POPT_ARG_LONGLONG ", "
|
|
|
093822 |
.RB POPT_ARG_FLOAT ", or " POPT_ARG_DOUBLE "."
|
|
|
093822 |
@@ -517,7 +517,7 @@
|
|
|
093822 |
applications. When an error is detected from most of the functions,
|
|
|
093822 |
an error message is printed along with the error string from
|
|
|
093822 |
.BR poptStrerror() ". When an error occurs during argument parsing, "
|
|
|
093822 |
-code similiar to the following displays a useful error message:
|
|
|
093822 |
+code similar to the following displays a useful error message:
|
|
|
093822 |
.sp
|
|
|
093822 |
.nf
|
|
|
093822 |
fprintf(stderr, "%s: %s\\n",
|
|
|
093822 |
@@ -608,7 +608,7 @@
|
|
|
093822 |
.RI "an " argv "-style array, some programs need to parse strings that "
|
|
|
093822 |
are formatted identically to command lines. To facilitate this, popt
|
|
|
093822 |
provides a function that parses a string into an array of strings,
|
|
|
093822 |
-using rules similiar to normal shell parsing.
|
|
|
093822 |
+using rules similar to normal shell parsing.
|
|
|
093822 |
.sp
|
|
|
093822 |
.nf
|
|
|
093822 |
.B "#include <popt.h>"
|