Re: [Vala] [Genie] GLib Command Parsing



Ok that works, thanks for the help. Could you explain why I can't define an array of OptionEntry objects in the scope of init?

Cheers,

Chris


On 06/19/11 10:23, Nicolas wrote:
Hi Chris,

Try this:

[indent=4]

version : bool = false
const my_options : array of OptionEntry = {{"version", 'V', 0, OptionArg.NONE, ref version, "Show application's version", null}, {null}}

init
    print "Hello"

See you,
Nicolas.



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