>>>>> "AM" == Adrian Mariano <[email protected]> writes:
AM> I don't believe there is any fully automated "nice" way to produce such a
AM> list.  I guess a question is why you want the list.

Purely from the Don Rickles 'can't find the --list option' frustrated
customer stance: iconv has -l, where's units' -l?

This kind of customer has no patience to learn about all the better ways
you offer of finding what he wants.

So I would make --list/-l do just the same as
$ more ~/.units.dat /usr/share/misc/units.dat|cat

He will be more than happy as he now has lots of info to grep through or
browse etc.

AM> That's good for humans, but not people. You can get that same result
AM> by doing "help <meter>" though you might have issues with paging
He would be to impatient to learn how to do that.

AM> backwards in some pagers.  I could add a line to the help that says:
AM> "To see the units definitions look in the file <filename>."

Yes that would be exactly enough too. Don't forget to mention
~/.units.dat (even if they have none yet.)

AM> ./units --check-verbose | sed -n "s/doing '\(.*\)'/\1/p"
Our Rickles can't deal with that.
AM> From within the program you can do "search a" for example to get all
AM> units containing "a", but there's no way to get *all* units.  This
AM> list is formatted in two columns with the definition on the right.  A
AM> simple list of all the units is a bit much for human consumption.
He just wants a big dump, so telling him the .dat files would be fine. Thanks.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to