[gobject-introspection] Print helpful error message if --strip-prefix	option is used.
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gobject-introspection] Print helpful error message if --strip-prefix	option is used.
- Date: Thu,  9 Sep 2010 13:23:04 +0000 (UTC)
commit be4e3cb6984367309aee64b969129a66316f5318
Author: Saikiran Madugula <hummerbliss gmail com>
Date:   Tue Sep 7 20:48:01 2010 +0100
    Print helpful error message if --strip-prefix option is used.
 giscanner/scannermain.py |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
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
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]