[Click] Detecting given optional arguments
Eddie Kohler
kohler at cs.ucla.edu
Tue Jan 17 02:01:10 EST 2006
Hi Bart,
It is not possible to know what optional arguments have been given.
It IS possible to know which keywords have been given, with
cpConfirmKeywords. This adds an extra boolean result, before the
actual result argument, that is set to true if the named keyword was
supplied. See elements/userlevel/progressbar.cc.
Also, I'd highly recommend you prefer keyword arguments to optional
arguments. They are nicer to the user and more self documenting.
Eddie
On Jan 12, 2006, at 2:51 AM, Bart Braem wrote:
> Hello,
>
> Perhaps a stupid question: is it possible to know which optional
> arguments
> have been given?
>
> Thanks for your help
> Bart
> --
> Bart Braem
> PATS research group
> Dept. of Mathematics and Computer Sciences
> University of Antwerp
> G2.36, Building G
> Middelheimlaan 1
> 2020 Antwerpen, Belgium
> Phone: +32 (0)3 265.35.19.
> Fax: +32 (0)3 265.37.77.
> Web: www.pats.ua.ac.be
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list