Return an error if an option is missing its argument. (#305576, Björn

2005-05-27  Matthias Clasen  <mclasen@redhat.com>

	* glib/goption.c (parse_short_option, parse_long_option):
	Return an error if an option is missing its argument.  (#305576,
	Björn Lindqvist)

	* tests/option-test.c (missing_arg_test): Add a testcase.
This commit is contained in:
Matthias Clasen
2005-05-27 18:30:34 +00:00
committed by Matthias Clasen
parent 8db223409d
commit 4c4f106344
6 changed files with 86 additions and 6 deletions

View File

@@ -1,3 +1,11 @@
2005-05-27 Matthias Clasen <mclasen@redhat.com>
* glib/goption.c (parse_short_option, parse_long_option):
Return an error if an option is missing its argument. (#305576,
Björn Lindqvist)
* tests/option-test.c (missing_arg_test): Add a testcase.
Wed May 25 15:33:51 2005 Manish Singh <yosh@gimp.org>
* glib/goption.c (print_help): rest_description should be const.