home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / volume.20 / text0037.txt < prev    next >
Encoding:
Internet Message Format  |  1990-08-02  |  1.2 KB

  1. From:  peter@ficc.uucp
  2.  
  3. In article <378@usenix.ORG> std-unix@uunet.uu.net writes:
  4. >   getopt()  This functional interface provides a standard utility
  5. >             argument parser that enforces the ``standard utility
  6. >             syntax'' guidelines and might be used to implement the
  7. >             getopts utility from POSIX.2.
  8.  
  9. Might it not be time to "push the envelope" as 1003.4 has done, and specify
  10. Eric Allman's far superior "parseargs" interface? Getopt really doesn't do
  11. that much: a command line parser using getopt is only slightly simpler than
  12. one assembled completely out of a nested loop, and it doesn't do anything
  13. to help generate usage messages and the like... with the result that usage
  14. messages that are out of date are not that uncommon, even in system programs.
  15.  
  16. Parseargs also helps by providing a system-independent interface, more so
  17. if you use my extended version of the unix driver routine. That way folks
  18. who work in other environments will be encouraged to produce programs that
  19. follow the P1003.2 interface when compiled under POSIX... and POSIX programs
  20. will fit well into VAX/VMS, MS-DOS, etc...
  21. -- 
  22. Peter da Silva.   `-_-'
  23. +1 713 274 5180.
  24. <peter@ficc.ferranti.com>
  25.  
  26. Volume-Number: Volume 20, Number 37
  27.  
  28.