From: Robert Dober Date: 2008-06-19T22:54:22+09:00 Subject: Re: Advice for pluggable architecture On Thu, Jun 19, 2008 at 3:22 PM, Robert Klemme wrote: > I am not sure whether this is a good idea: you force selection of the > algorithm into the data stream. Excellent point, that was what I wanted to avoid in the first place. > > I'd prefer making the mode part of the filter command line, i.e. > > ls -lR | rubyfilter myMode > ls -lR | ruby -r rubyfilter myMode > > or even chaining with > > ls -lR | rubyfilter myMode,myOtherMode > ls -lR | ruby -r rubyfilter myMode,myOtherMode I will probably go for rubyfilter -m mode rubyfilter --mode mode this is the unix way I guess ;) the rest of your remarks need more thinking, thx. R