diff options
author | Saikiran Madugula <hummerbliss@gmail.com> | 2010-09-07 20:48:01 +0100 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-09-09 09:21:27 -0400 |
commit | be4e3cb6984367309aee64b969129a66316f5318 (patch) | |
tree | 70834b2c4e8982a6fea1b8c830525e702a050751 /giscanner/scannermain.py | |
parent | 35d349b232d80f40242dc45aa90e5ed3eab42c68 (diff) | |
download | gobject-introspection-be4e3cb6984367309aee64b969129a66316f5318.tar.gz |
Print helpful error message if --strip-prefix option is used.
Diffstat (limited to 'giscanner/scannermain.py')
-rw-r--r-- | giscanner/scannermain.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index 0333dee4..126ce990 100644 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -89,6 +89,10 @@ def _get_option_parser(): parser.add_option("", "--nsversion", action="store", dest="namespace_version", help="version of namespace for this unit") + parser.add_option("", "--strip-prefix", + action="store", dest="strip_prefix", + help="""Option --strip-prefix is deprecated, please see --identifier-prefix +and --symbol-prefix.""") parser.add_option("", "--identifier-prefix", action="append", dest="identifier_prefixes", default=[], help="""Remove this prefix from C identifiers (structure typedefs, etc.). @@ -241,6 +245,9 @@ def scanner_main(args): _error("Must specify --program or --library") libraries = options.libraries + if options.strip_prefix: + _error("Option --strip-prefix is deprecated, please see --identifier-prefix and --symbol-prefix.") + filenames = [] for arg in args: # We don't support real C++ parsing yet, but we should be able |