summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-05-05 04:39:18 +0000
committerAlp Toker <alp@nuanti.com>2014-05-05 04:39:18 +0000
commit9ec9eb8f9aeea33a2321dc2e53985ad840e60a42 (patch)
tree0a334d846094aa6553cffe3bfb34148ec9c39a18 /bindings
parent2b59ca4f9c95eafb3e00c32c6423b7012ef50e73 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207946 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/examples/cindex/cindex-dump.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/examples/cindex/cindex-dump.py b/bindings/python/examples/cindex/cindex-dump.py
index af7ddab6ea..99d03906c5 100644
--- a/bindings/python/examples/cindex/cindex-dump.py
+++ b/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)