On Wed, 16 May 2001, Mr.Bad wrote: > >>>>> "t" == thelema <thelema at mh246001.truman.edu> writes: > > t> Well, after some arguing about how to do command-line arguments on > t> #freenet, I decided to just go ahead and rewrite the command-line > t> argument processing for insertclient and requestclient. > > For the great reason of... they bugged you? They didn't work? Why'd > you do this? Did you change the command-line handling for all programs > (I mean, did you change "Params.java")?
I did have to make one change to Params.java to add a method that would be necessary for command-line argument processing to happen outside Params. But other than that one method, all the changes were in InsertClient.java and RequestClient.java > > Also, since what you're talking about is pretty much GNU cmdline > handling, did you use gnu.getopt? > > http://www.gnu.org/software/java/java-software.es.html > > Or (in the great tradition of Freenet) did you write it over again? > Of course I wrote it all over again. There's still a bit more writing to do to allow short arguments to be combined, but that's not a problem. > t> Hopefully this doesn't ruffle anyone's dander too much. > > Not -too- much, but it seems like a big change for docs & such without > much benefit besides satisfying your personal aesthetics. As far as > I'm concerned, the Java-style parameters (single-dash, long name) was > fine. At least it was consistent. > > ~Mr. Bad > A foolish consistency is the hobgoblin of something something... This is the way it should have been done from the beginning, as with the java-style parameters, there'd be almost no hope of being able to combine short arguments (which, besides being easier to type, is their strength over long ones). Yeah, all sorts of documentation needs to be changed, but as I learned from oierw, there's all sorts of functionality that was never documented in the first place, so we'd have to go over the client docs sometime. Thelema -- E-mail: thelema314 at bigfoot.com If you love something, set it free. GPG 1536g/B9C5D1F7 fpr:075A A3F7 F70B 1397 345D A67E 70AA 820B A806 F95D -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20010517/2806ebc1/attachment.pgp>
