home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v8 / text0007.txt < prev    next >
Encoding:
Internet Message Format  |  1987-06-30  |  2.0 KB

  1. From: guy@sun.com (Guy Harris)
  2. Date: Tue, 28 Oct 86 23:20:53 PST
  3.  
  4. > >                                Since this one has
  5. > >already been implemented by many commands, it is preferable.
  6.  
  7. > ...But I dislike it when it is paraded as THE reason for saying its
  8. > preferable.  Is UNIX supposed to turn into an official fossil now?
  9.  
  10. I saw no great advantage offered by the proposed scheme.  It was more
  11. "different" than it was "better".  I'll complete the thought, then: "Since
  12. this one has already been implemented by many commands, since it requires less
  13. reprogramming than changing all commands that accept flag arguments to
  14. special-case arguments beginning with "--", and since it would be a novelty
  15. to more users than the "'--' quotes a '-'" convention would be, it is
  16. preferable."
  17.  
  18. > I say my suggestion is cleaner and more versatile, thus it is preferable.
  19.  
  20. I don't see how it is any "cleaner" than "--", although this depends on what
  21. "cleaner" means.  It is slightly more versatile, in that it is not
  22. context-dependent; however, this is not sufficient to make it preferable.
  23. The cost of changing existing programs to use the "'--' quotes a '-'"
  24. convention that is greater than the cost to changing them to use the
  25. "getopt" convention.
  26.  
  27. > The required reprogramming would not be that complicated--just a minor
  28. > nuisance.
  29.  
  30. No, it is not necessarily *complicated*, but that doesn't render it merely a
  31. "minor nuisance".  It requires that all *non*-flag arguments be treated
  32. specially.  Programs that accept flag arguments already treat them
  33. specially.  Those that use "getopt" need not change at all.  Those that do
  34. not can either be converted to use "getopt", or just be converted to
  35. recognize a flag of the form "--" as an indication that no subsequent
  36. arguments be treated as flag arguments.
  37.  
  38. > But if you wish appeals to history, ...
  39.  
  40. I *don't* want appeals to history; my comment was an appeal to existing
  41. practice, and more specifically existing practice in the area of command
  42. argument parsing.
  43.  
  44. Volume-Number: Volume 8, Number 8
  45.  
  46.