diff options
author | Colin Walters <walters@verbum.org> | 2010-06-25 13:23:49 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-07-07 11:07:17 -0400 |
commit | cb268efadd68c0d67965e683a26966d760cd33ca (patch) | |
tree | 5163f0fa47d6f30d1b106afa9db975f6d2989e91 /giscanner/scannermain.py | |
parent | 1afcef9b497f77df84ea80b46071ce3dd0f03a4e (diff) | |
download | gobject-introspection-cb268efadd68c0d67965e683a26966d760cd33ca.tar.gz |
In verbose mode, print out the dump compilation
When debugging the dumper, it's extremely useful to be able
to see the argument it's passing to the compiler/linker.
This patch makes g-ir-scanner work the same way as libtool basically;
we default to printing out stuff, and add a --quiet option.
The Makefile.introspection handles passing --quiet automatically.
https://bugzilla.gnome.org/show_bug.cgi?id=622751
Diffstat (limited to 'giscanner/scannermain.py')
-rw-r--r-- | giscanner/scannermain.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index be590f1a..363f6f6d 100644 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -37,6 +37,11 @@ from giscanner.transformer import Transformer def _get_option_parser(): parser = optparse.OptionParser('%prog [options] sources') + parser.add_option('', "--quiet", + action="store_true", dest="quiet", + default=False, + help="If passed, do not print details of normal" \ + + " operation") parser.add_option("", "--format", action="store", dest="format", default="gir", |