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

  1. From:  darcy@druid.uucp (D'Arcy J.M. Cain)
  2.  
  3. In article <729@longway.TIC.COM> From: David J. MacKenzie <djm@eng.umd.edu>
  4. >Parseargs has a lot of problems; I looked at it and discarded it.  It
  5. >might provide a superior interface to the programmer, but it doesn't
  6. >provide the same interface to the user; that is, it doesn't conform to
  7. >the standard Unix option syntax that most programs use (allowing
  8. >ganging of multiple single-letter options into a single argument, for
  9. >example).  Since getopt is an existing-practice de-facto standard, I
  10.  
  11. You might like my getarg function.  I designed it as a replacement for
  12. getopt but in such a way that the user can use it exactly like getopt.
  13. It does however support extra functionality which can be used if the user
  14. is aware of it.  For one thing, options and arguments (files) can be
  15. mixed instead of requiring all options to precede the files.  You can
  16. also initialise the argument list more than once supporting things such
  17. as environment default command lines, arguments from files etc mixed
  18. with arguments from the command line.  I just posted it recently to
  19. alt.sources and I'm interested in getting some feedback on it.
  20.  
  21. -- 
  22. D'Arcy J.M. Cain (darcy@druid)     |   Government:
  23. D'Arcy Cain Consulting             |   Organized crime with an attitude
  24. West Hill, Ontario, Canada         |
  25. (416) 281-6094                     |
  26.  
  27. Volume-Number: Volume 20, Number 45
  28.  
  29.