.\" ----------------------------------------------------------------------
Mandatory\fI arguments\fR to long options are mandatory for short
options too.
-The equals sign can be used with either option form and whitespace
-before and/or after the `=' is permitted.
+
+Although not required, the equals sign can be used with either option
+form and whitespace before and/or after the `=' is permitted.
.TP 3
\-\fBb\fR, \fB\-\-batch\fR
.TP 3
\-\fBV\fR, \fB\-\-version\fR
-Show library version, then quit.
+Display version information, then quit.
.TP 3
\-\fBw\fR, \fB\-\-width\fR [=\fICOLUMNS\fR]
to format output using the COLUMNS= and LINES= environment variables, if set.
With an argument, output width can only be decreased, not increased.
Whether using environment variables or an argument with \-w, when\fI not\fR
-in Batch mode actual, terminal dimensions can never be exceeded.
+in Batch mode actual terminal dimensions can never be exceeded.
\*(NT Without the use of this \*(CO, output width is always based on the
terminal at which \*(We was invoked whether or not in Batch mode.
cp = argv[optind++];
if (cp) {
if (*cp == '=') ++cp;
- if (*cp == '\0' && optind < argc) cp = argv[optind++];
- if (!cp || *cp == '\0') error_exit(fmtmk(N_fmt(MISSING_args_fmt), ch));
+ /* here, if we're actually accessing argv[argc], we'll rely on
+ the required NULL delimiter which yields an error_exit next */
+ if (*cp == '\0') cp = argv[optind++];
+ if (!cp) error_exit(fmtmk(N_fmt(MISSING_args_fmt), ch));
}
#endif
switch (ch) {