[clang-query] Re-word command help
authorStephen Kelly <steveire@gmail.com>
Wed, 24 Oct 2018 20:33:14 +0000 (20:33 +0000)
committerStephen Kelly <steveire@gmail.com>
Wed, 24 Oct 2018 20:33:14 +0000 (20:33 +0000)
Summary:
This will make it possible to easily

* Add new commands which accept <feature> parameters
* Extend the list of features

Reviewers: aaron.ballman

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D53498

llvm-svn: 345192

clang-tools-extra/clang-query/Query.cpp

index 463e52c5806f7af39293385d246bf6c498414495..3e83bbc92b22759acd12f5cbe5522320e6c05688 100644 (file)
@@ -43,12 +43,18 @@ bool HelpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const {
         "Set whether to bind the root matcher to \"root\".\n"
         "  set print-matcher (true|false)    "
         "Set whether to print the current matcher,\n"
-        "  set output (diag|print|dump)      "
-        "Set whether to print bindings as diagnostics,\n"
-        "                                    "
-        "AST pretty prints or AST dumps.\n"
+        "  set output <feature>              "
+        "Set whether to output only <feature> content.\n"
         "  quit, q                           "
-        "Terminates the query session.\n\n";
+        "Terminates the query session.\n\n"
+        "Several commands accept a <feature> parameter. The available features "
+        "are:\n\n"
+        "  print                             "
+        "Pretty-print bound nodes.\n"
+        "  diag                              "
+        "Diagnostic location for bound nodes.\n"
+        "  dump                              "
+        "Detailed AST output for bound nodes.\n\n";
   return true;
 }