diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2009-12-24 00:15:21 +0100 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-01-05 13:50:55 -0500 |
commit | d3b2976ae77a363d48246afe889860783e6c41d0 (patch) | |
tree | 3ce485c7aa0320009daf29505625df1951236fb4 /giscanner/scannermain.py | |
parent | ab1af50d167da42f5b927c9cf7373c7bc7f87a89 (diff) | |
download | gobject-introspection-d3b2976ae77a363d48246afe889860783e6c41d0.tar.gz |
Add an --add-init-section argument
One might need to call some init functions before being able to call
get_type() to create the types of a library.
--add-init-section let the user insert some initialization code in the
introspection program.
https://bugzilla.gnome.org/show_bug.cgi?id=605778
Diffstat (limited to 'giscanner/scannermain.py')
-rw-r--r-- | giscanner/scannermain.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index dfe17432..cc70fdee 100644 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -75,6 +75,9 @@ def _get_option_parser(): parser.add_option("", "--strip-prefix", action="store", dest="strip_prefix", default=None, help="remove this prefix from objects and functions") + parser.add_option("", "--add-init-section", + action="append", dest="init_sections", default=[], + help="add extra initialization code in the introspection program") parser.add_option("-o", "--output", action="store", dest="output", help="output to writeout, defaults to stdout") |