From be4e3cb6984367309aee64b969129a66316f5318 Mon Sep 17 00:00:00 2001 From: Saikiran Madugula Date: Tue, 7 Sep 2010 20:48:01 +0100 Subject: [PATCH] Print helpful error message if --strip-prefix option is used. --- giscanner/scannermain.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index 0333dee..126ce99 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 -- 2.7.4