Add tests for the handling of non-option arguments, "--" and
authorMatthias Clasen <mclasen@redhat.com>
Fri, 29 Oct 2004 20:19:06 +0000 (20:19 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 29 Oct 2004 20:19:06 +0000 (20:19 +0000)
commita9fa61a13e3c3af998112f9deb8d1202167e069c
tree415e9356c17d6a8c99a7543978c038f698409ae8
parenta0e217e94a030cc6cfeeb879f3391bd2a3e8a499
Add tests for the handling of non-option arguments, "--" and

2004-10-29  Matthias Clasen  <mclasen@redhat.com>

* tests/option-test.c: Add tests for the handling of
non-option arguments, "--" and G_OPTION_REMAINING.

* glib/goption.[hc]: #define G_OPTION_REMAINING, which is
a special long option name, which can be used for an option
in the main group which collects the non-option arguments.
It must be of type G_OPTION_ARG_STRING_ARRAY or
G_OPTION_ARG_FILENAME_ARRAY. If the main group doesn't contain
an option whose name is G_OPTION_REMAINING, the non-option
arguments are left behind in argv as before.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/goption.c
glib/goption.h
tests/option-test.c