From d39731724a4a7c1d63953f41207e01e98ca5d9a3 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 11 May 2011 17:13:57 -0400 Subject: [PATCH] gdbus-codegen: Fix annotation parsing It takes 3 options. --- gio/gdbus-codegen/codegen_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gio/gdbus-codegen/codegen_main.py b/gio/gdbus-codegen/codegen_main.py index a1d190912..cc9298fa7 100644 --- a/gio/gdbus-codegen/codegen_main.py +++ b/gio/gdbus-codegen/codegen_main.py @@ -159,7 +159,7 @@ def codegen_main(): help='Generate C code in OUTFILES.[ch]') arg_parser.add_option('', '--generate-docbook', metavar='OUTFILES', help='Generate Docbook in OUTFILES-org.Project.IFace.xml') - arg_parser.add_option('', '--annotate', action='append', metavar='WHAT,KEY,VALUE', + arg_parser.add_option('', '--annotate', nargs=3, action='append', metavar='WHAT KEY VALUE', help='Add annotation (may be used several times)') (opts, args) = arg_parser.parse_args();