home *** CD-ROM | disk | FTP | other *** search
- .\"----------------------------------------------------------------------------
- .\"-- This text was extracted using the following command:
- .\"-- xdoc -man -n -p '[ \t]*' -I BUGS ../xparse.c
- .\"----------------------------------------------------------------------------
- .SH BUGS
- .PP
- When a non-multivalued argument appears more than once on the command-line
- then only the last value supplied is used. A problem occurs however in the
- following scenario: suppose `\fB\-s\fP' is an option that takes an optional
- string argument (and suppose `\fB\-x\fP' is some boolean flag). Then if the
- following command-line is issued:
-
- .RS
- .nf
- .ft 4
- command \-s string \-x \-s
- .ft R
- .fi
- .RE
-
- then, the argument flags will properly correspond to the second instance
- of the `\fB\-s\fP' option (namely \s-1ARGGIVEN\s+1 will be set but
- \s-1ARGVALGIVEN\s+1 will be unset) but the value associated with the
- option will be ``\fIstring\fP'' (because the first instance overwrote
- the default). Because of this, it may be safest to reassign the default
- value if \s-1ARGGIVEN\s+1 is set but \s-1ARGVALGIVEN\s+1 is unset.
-