Add the MoreHelp function pointer. If non-null, this specifies a function to be calle...
authorReid Spencer <rspencer@reidspencer.com>
Sun, 14 Nov 2004 21:49:13 +0000 (21:49 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 14 Nov 2004 21:49:13 +0000 (21:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17756 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CommandLine.h

index 4bb1c1f4ee851fb8e7495bd99407fc844276a9f6..4d5dccd38c019d30851d1304365f1932bceffbed 100644 (file)
@@ -1046,6 +1046,14 @@ struct aliasopt {
   void apply(alias &A) const { A.setAliasFor(Opt); }
 };
 
+/// Permit the tool to provide additional help output after the normal
+/// help output. To use this, create a function that returns void and
+/// takes no arguments. Assign its address to cl::MoreHelp. If set, 
+/// this function will be called just before the CommandLine exits
+/// after printing the help.
+/// @brief Optional pointer to additional help function
+extern void (*MoreHelp)();
+
 } // End namespace cl
 
 } // End namespace llvm