projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5db9e5a
)
G_OPTION_FLAG_NO_ARG is only for callback options
author
Christian Persch
<chpe@gnome.org>
Tue, 17 Aug 2010 23:02:22 +0000
(
01:02
+0200)
committer
Christian Persch
<chpe@gnome.org>
Wed, 18 Aug 2010 13:32:07 +0000
(15:32 +0200)
Bug #627252.
glib/tests/option-context.c
patch
|
blob
|
history
diff --git
a/glib/tests/option-context.c
b/glib/tests/option-context.c
index
ffb4d13
..
81096db
100644
(file)
--- a/
glib/tests/option-context.c
+++ b/
glib/tests/option-context.c
@@
-33,16
+33,14
@@
group_captions (void)
gchar *help_variants[] = { "--help", "--help-all", "--help-test" };
GOptionEntry main_entries[] = {
- { "main-switch", 0,
- G_OPTION_FLAG_NO_ARG,
+ { "main-switch", 0, 0,
G_OPTION_ARG_NONE, NULL,
"A switch that is in the main group", NULL },
{ NULL }
};
GOptionEntry group_entries[] = {
- { "test-switch", 0,
- G_OPTION_FLAG_NO_ARG,
+ { "test-switch", 0, 0,
G_OPTION_ARG_NONE, NULL,
"A switch that is in the test group", NULL },
{ NULL }