| Joel Uckelman on Mon, 3 Jan 2005 21:01:26 -0600 (CST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: [nimh-dev] options and getopt |
Thus spake "Jon Stewart": > > I think we have three options (heh!): > > > > 1. Switch to long options, e.g. '--reverse'. We can use getopt, but this > > breaks compatibility with nmh. > > > > 2. Write our own option parser. This maintains nmh compatibility, but > > keeps us using a wierd non-standard option format and makes us write > > more code. > > > > 3. Use getopt, but check for anagrams. This would work so long as no two > > distince options for the same command are anagrams of each other. (Yech!) > > > I vote for 1. Backwards compatibility is just that: backwards. > > With the exception that we retain '+folder'. +folder counts as an argument according to getopt, so it's safe. _______________________________________________ nimh-dev mailing list nimh-dev@xxxxxxxxxxx http://lists.ellipsis.cx/mailman/listinfo/nimh-dev