I've got some code that allows one to exclude debug token, so that certain types can be filtered out. Before I check it in, I wanted to solicit opinions on how it should work.
Option 1) any token prefixed with '-' will be excluded. eg -D -parse-mibs,parse,other,-different will show any token starting with 'other' or 'parse', except for those that start with 'parse-mibs' or 'different'. Option 2) any string of tokens prefixed with '-' will be excluded. eg -D -parse-mibs,different -D parse,other will show any token starting with 'other' or 'parse', except for those that start with 'parse-mibs' or 'different'. Option 3) define a new token. eg -Dx parse-mibs -D parse,other will show any token starting with 'other' or 'parse', except for those that start with 'parse-mibs'. I like option 1. Option 2 is in-line with how '+' affects mibs, and (I think) the way the snmpd -I option works to exclude modules during init. Thoughts? -- Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders