[Click] Configuration parsing with Args: variable argument list with minimum size?

Bart Braem bart.braem at ua.ac.be
Thu Jan 19 10:57:11 EST 2012


Hi all,

I'm creating a new element which would be something like HostEtherFilter but with multiple ethernet addresses and less focused on host based functionality. To do this, I'm trying to parse a configuration consisting of
- some mandatory arguments
- some optional keywords
- and then a variable size argument list with a minimum size
What would be the cleanest way to implement this with the recent Args argument parsing code? Especially the last part, the variable size argument list, seems tricky to do properly. I've looked into the regular Classifier etc, but these elements do not seem to use the Args code.

best regards,
Bart
-- 
Bart Braem
PATS research group - IBBT
Dept. of Mathematics and Computer Science
University of Antwerp
Campus Middelheim, G3.26
Middelheimlaan 1
B-2020 Antwerpen, Belgium
Phone: +32 (0)3 265.38.64
Fax: +32 (0)3 265.37.77
Web: www.pats.ua.ac.be




More information about the click mailing list