home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume29 / parseargs / part01 / doc / lib_bugs.inc < prev    next >
Encoding:
Text File  |  1992-05-19  |  1.1 KB  |  27 lines

  1. .\"----------------------------------------------------------------------------
  2. .\"-- This text was extracted using the following command:
  3. .\"--   xdoc -man -n -p '[ \t]*' -I BUGS  ../xparse.c
  4. .\"----------------------------------------------------------------------------
  5. .SH BUGS
  6. .PP
  7. When a non-multivalued argument appears more than once on the command-line
  8. then only the last value supplied is used. A problem occurs however in the
  9. following scenario: suppose `\fB\-s\fP' is an option that takes an optional
  10. string argument (and suppose `\fB\-x\fP' is some boolean flag). Then if the
  11. following command-line is issued:
  12.  
  13. .RS
  14. .nf
  15. .ft 4
  16. command  \-s string  \-x  \-s
  17. .ft R
  18. .fi
  19. .RE
  20.  
  21. then, the argument flags will properly correspond to the second instance
  22. of the `\fB\-s\fP' option (namely \s-1ARGGIVEN\s+1 will be set but 
  23. \s-1ARGVALGIVEN\s+1 will be unset) but the value associated with the
  24. option will be ``\fIstring\fP'' (because the first instance overwrote
  25. the default).  Because of this, it may be safest to reassign the default
  26. value if \s-1ARGGIVEN\s+1 is set but \s-1ARGVALGIVEN\s+1 is unset.
  27.