home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume6 / copt / README < prev   
Encoding:
Text File  |  1989-03-07  |  1.8 KB  |  47 lines

  1. Description
  2. ===========
  3.  
  4. A radical departure fro Unix - proper command line parsing!
  5.  
  6. This is a library to replace getopt() or simple "-" option processing by a program.
  7. It provies automatic scanning switch options, + to turn on, - to turn off; string
  8. valued options, e.g. file=../fred, and numeric options - these may be in any base
  9. between 2 and 36 or autobase, which follows the C convention for constants. Multiple
  10. numeric value options are also parsed, e.g. tabs=4,7,23, and return as a vector the
  11. first element being the number of values found. As well as parsing options the library
  12. provides for displaying a table of options on request. Run the demo program - which is
  13. the only "proper" documentation (sorry, but I've never got around to it).
  14.  
  15. Installation
  16. ============
  17.  
  18. Run make. Copy cset.a & cset.h to suitable directories.
  19.  
  20. History
  21. =======
  22.  
  23. Many years ago I used a Honeywell GCOS/TSS system and the B language from the University of
  24. Waterloo, Ontario. The B language came with a command line parser library, bset(). I extended
  25. that library, adding options to print the argument table etc. and standardised all the commands
  26. on the TSS system (plus some other major hacking, but enough said...). Later I rewrote the whole
  27. library from scratch in C for Unix.
  28.  
  29. Acknowlegements
  30. ===============
  31.  
  32. To the people at Waterloo for the original idea.
  33. To by boss at the time - which is the reason for the detailed copyright notice
  34. [We had an offical agreement, anything I wrote and distributed could either be
  35. sold at a price set by him with me getting a percentage, or if I disagreed with
  36. his proposed price I could overrule and distribe it free...]
  37.  
  38. If anybody writes some proper manual pages, please send me a copy!
  39.  
  40. Nigel Perry
  41. Dept of Computing
  42. Imperial College
  43. London SW7
  44. England
  45.  
  46. np@uk.ac.ic.doc
  47.