Re: new goption flag G_OPTION_FLAG_OPTIONAL ARG
- From: Pawel Sliwowski <open list gmail com>
- To: GTK Devel <gtk-devel-list gnome org>
- Subject: Re: new goption flag G_OPTION_FLAG_OPTIONAL ARG
- Date: Thu, 23 Jun 2005 23:11:27 +0000
Bug 308886
On Thu, 2005-06-23 at 23:08 +0000, Pawel Sliwowski wrote:
> I was wondering if we could add a new goption flag
> G_OPTION_FLAG_OPTIONAL_ARG. This flag would only apply to
> G_OPTION_ARG_CALLBACK like the other new flags, but allows the argument
> to be optional. So this allows the switch to collect data and act like a
> boolean. This is useful when you want a default action to be taken if no
> argument is given.
>
> 2005-06-23 Pawel Sliwowski <open list gmail com>
>
> * glib/goption.h:
> * glib/goption.c: Add G_OPTION_FLAG_OPTIONAL_ARG to
> allow greater control of G_OPTION_ARG_CALLBACK options.
>
> * tests/option-test.c: test optional arg flag
>
> 2005-06-23 Pawel Sliwowski <open.list at gmail.com>
>
> * glib/tmpl/option.sgml (GOptionFlags): document
> G_OPTION_FLAG_OPTIONAL_ARG
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]