diff options
author | Alp Toker <alp@nuanti.com> | 2014-05-05 04:39:18 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-05-05 04:39:18 +0000 |
commit | 777fce64cc00c610d831808a2d3ed64c58608a89 (patch) | |
tree | 92fb0ad6c833edf85560387328b570f6eb53e067 /clang/bindings/python/examples | |
parent | 8646d3c1647fdaa4b27ff7369f8a912c24b30666 (diff) | |
download | bcm5719-llvm-777fce64cc00c610d831808a2d3ed64c58608a89.tar.gz bcm5719-llvm-777fce64cc00c610d831808a2d3ed64c58608a89.zip |
Fix cindex-dump.py --show-ids
This option flag was incorrectly expecting an argument:
$ cindex-dump.py --show-ids test.cpp
cindex-dump.py: error: invalid number arguments
With this change the feature correctly gets enabled by --show-ids.
No tests.
llvm-svn: 207946
Diffstat (limited to 'clang/bindings/python/examples')
-rw-r--r-- | clang/bindings/python/examples/cindex/cindex-dump.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/bindings/python/examples/cindex/cindex-dump.py b/clang/bindings/python/examples/cindex/cindex-dump.py index af7ddab6ea5..99d03906c52 100644 --- a/clang/bindings/python/examples/cindex/cindex-dump.py +++ b/clang/bindings/python/examples/cindex/cindex-dump.py @@ -64,7 +64,7 @@ def main(): parser = OptionParser("usage: %prog [options] {filename} [clang-args*]") parser.add_option("", "--show-ids", dest="showIDs", help="Don't compute cursor IDs (very slow)", - default=False) + action="store_true", default=False) parser.add_option("", "--max-depth", dest="maxDepth", help="Limit cursor expansion to depth N", metavar="N", type=int, default=None) |