Re: [Vala] GLib Command Line Parsing



Émilien Tlapale wrote:
Thanks!

I was missing the `const' qualifier. As const variables
need not to be put inside methods, i need to add static variables
or global ones to handle the arguments :(

Anyway, why in OptionContext's method :

public bool parse (out string[] argv) throws OptionError;

argv is out? Shouldn't it be a ref?

++

No, because it returns _another_ argv with the rest of the (unparsed) parameters

Cheers,

--
Vlad http://blad.wordpress.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]