> So this feature is in, with a '-t' flag to indicate partial matching.
> Apparently 't' is for 'tree'. I think '-p' for partial/prefix is more 
> intuitive,

That illustrates my objection perfectly.
Either choice is fairly logical, so the use has to try and remember
(or look up) what the exact options are in this particular situation.
 And they must also ignore the fact that both '-p' and '-t' are used
for something else in snmptrapd and snmpd, -t is used for something
different again in command-line tools, and -p is used for something
different again in config files.

The use of '*' as a wildcard match is fairly universally understood,
so would seem ideal here.

Unfortunately, I never got around to implementing this when we first
discussed it, and although I'd offered to rework things earlier this
week, Wes got there before me.


> So, I'm looking for a preferred ordering from as many people as possible. 
> I'll start:
>
> -p
> -t
> oid.*


oid.*



either of the other two - I really don't care


> I don't like setting the precedent of allowing '*' in OIDs... If we were to do
> such a thing, why not go whole hog and allow vacm style masks?

Because that would be:
   a) unnecessary
   b) confusing to many people.

A simple trailing wildcard is intuitively obvious IMO - more so than
single-letter options.
Quite apart from the need to explain what is meant by "tree" or
"prefix" in this context.
It's probably fairly clear to most of us on this list, but may not be
so to those less familiar with the SNMP world in general.

Anyway - that's my view on things.  I don't expect anyone to agree
with me, so I'm prepared to put up with whatever the general consensus
turns out to be.

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to