Actually --trim can act like -F (temperature scale) -- only on the component 
you want. It would passed as an argument to owserver and determine the output 
format.


Sent via the Samsung Galaxy S™ III, an AT&T 4G LTE smartphone

-------- Original message --------
From: Vajk Fekete <[email protected]> 
Date: 03/18/2014  5:33 AM  (GMT-05:00) 
To: "OWFS (One-wire file system) discussion and help" 
<[email protected]> 
Subject: Re: [Owfs-developers] ow* Output - leading spaces trimmed? 
 
Maybe I am an old chap. If I do not like a function in an API, I just create a 
wrapper and use my own wrapper in my code. In an object oriented environment it 
is even simpler, I can create my own class that extends the original and 
changes any behavior I need to behave differently. I am not literate in python, 
so unfortunately cannot provide an example, but it should be straight forward.

Even a switch to owfs can cause trouble, as then there will be components that 
need owfs be running with --trim, and other components that need owfs without 
--trim. To use both kinds of components in a solution, you will need ownet and 
two owfs instances just to avoid trimming in the code.

Vajk


On Tue, Mar 18, 2014 at 9:06 AM, Markus Gaugusch <[email protected]> wrote:
Hi,

I also think, that something like that would be a nice solution. Possibly, you 
could even change the default and offer --pretty or --no-trim to restore the 
old behaviour.

I think the default should be without spaces, but we should not forget about 
legacy applications, of course.

br,
Markus

On Mar 18, Paul Alfille <[email protected]> wrote:

Why is  command line argument (--trim) a bad idea?


On Mon, Mar 17, 2014 at 8:38 PM, Michael Markstaller <[email protected]> wrote:
      Hmm, if you get "null", is this different from a bunch of spaces with no
      value?
      Either fully or not, a switch is another bad workaround..

      My other 2 cents..

      Michael

      On 17.03.2014 22:29, brucek wrote:
      > OK, my 2 cents worth:
      > I use the returned length to determine if I have had a valid read or
      > not...so I would not like it to change.
      >
      > How about a startup switch?
      > Bruce

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers





-- 
__________________    /"\
Markus Gaugusch       \ /    ASCII Ribbon Campaign
markus(at)gaugusch.at  X     Against HTML Mail
                      / \
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to