Would it be workable to change freenet.client.cli.Main to use the exit
status to indicate the success or failure of the operation?

For example, when I use this class to fetch or insert documents into
freenet, I sometimes do it from a script.  When a 'get' fails, without
parsing the error messages coming back (which is nasty and probably
error prone as they may change in the future) I have no way of telling
whether the query failed with a DNF (i.e. don't bother trying again)
or an RNF.  (i.e. I might want to try again). 

It would be very nice to be able to distinguish the status of the
query by the exit code.  I looked into the way it's written, and there
doesn't seem to be a really straightforward way of doing this.

(1) Is this something that someone more familiar with the code than me
can do quickly?
(2) If I can put together a patch to do this, would it be accepted?

-- 
David Allen
http://opop.nols.com/
----------------------------------------
Hard work may not kill you, but why take chances? 

_______________________________________________
devl mailing list
devl at freenetproject.org
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to