Handle conflicts between options in different groups. (#156808)
authorMatthias Clasen <mclasen@redhat.com>
Mon, 1 Nov 2004 17:40:09 +0000 (17:40 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 1 Nov 2004 17:40:09 +0000 (17:40 +0000)
commit57f8507273035e1f87e8724b73b60c1d1cdeaad2
treec103ee0d33d073843859b0fd36695970500ca8e2
parent0032a3c1b6cac3298dee062443617fc0e8cb5952
Handle conflicts between options in different groups. (#156808)

2004-11-01  Matthias Clasen  <mclasen@redhat.com>

Handle conflicts between options in different groups. (#156808)

* glib/goption.c (g_option_context_parse): When a long option does not
match exactly, try to parse it as --group-option.
(g_option_context_add_group): Warn if a group name conflict occurs.

* glib/goption.c (print_help): Print out the effective options, ie
don't print shadowed short options, and for long options print
--group-option instead of --option if appropriate.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/goption.c