[glib] gdbus-codegen: Fix annotation parsing



commit d39731724a4a7c1d63953f41207e01e98ca5d9a3
Author: Colin Walters <walters verbum org>
Date:   Wed May 11 17:13:57 2011 -0400

    gdbus-codegen: Fix annotation parsing
    
    It takes 3 options.

 gio/gdbus-codegen/codegen_main.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gdbus-codegen/codegen_main.py b/gio/gdbus-codegen/codegen_main.py
index a1d1909..cc9298f 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();
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]