[PATCH] add g_option_group_get_name and ignore re-adding same group to context
Submitted by Robert Bragg
Link to original bug (#622289)
Description
These patches are intended to allow libraries to provide applications with a list of GOptionGroups to cover their own arguments and the arguments of their internal dependencies without the application need to know about that library's dependencies (some of which may be conditional dependencies that depend on how the library was built)
The first problem currently is that if the application gets multiple lists from different libraries it should be able to add all those groups to its context without worrying about duplicates. The second problem is that if the application did want to black list certain option groups (e.g. to avoid a collision with some of its own arguments) then it needs to be able to retrieve the name for each group it gets.