Take main group options into account when calculating column size.

2005-02-10  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (print_help): Take main group options into
	account when calculating column size.  (#166921)
	(g_option_context_parse): Accept -? as documented.  (#166977)
This commit is contained in:
Matthias Clasen
2005-02-11 04:11:34 +00:00
committed by Matthias Clasen
parent de2763c99a
commit 1795e0aeb0
7 changed files with 96 additions and 41 deletions

View File

@@ -1,3 +1,7 @@
2005-02-10 Matthias Clasen <mclasen@redhat.com>
* glib/tmpl/option.sgml: Fix a typo. (#166985)
2005-02-07 Matthias Clasen <mclasen@redhat.com>
* glib/glib-sections.txt: Add g_listenv.

View File

@@ -56,7 +56,7 @@ Usage:
testtreemodel [OPTION...] - test tree model performance
Help Options:
--help Show help options
-?, --help Show help options
--help-all Show all help options
--help-gtk Show GTK+ Options
@@ -299,7 +299,7 @@ g_option_context_add_main_entries() or g_option_group_add_entries().
--<replaceable>groupname</replaceable>-<replaceable>long_name</replaceable>.
@short_name: If an option has a short name, it can be specified
-<replaceable>short_name</replaceable> in a commandline.
@flags: Flags from #GOptionEntryFlags.
@flags: Flags from #GOptionFlags.
@arg: The type of the option, as a #GOptionArg.
@arg_data: If the @arg type is %G_OPTION_ARG_CALLBACK, then @arg_data must
point to a #GOptionArgFunc callback function, which will be called to handle