Re: [Vala] [Genie] GLib Command Parsing



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]