summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandLine.html
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-01-16 22:54:19 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-01-16 22:54:19 +0000
commitcbc26fdb6ecdebd60cbd6283fc507acf3fe5b96f (patch)
tree4eaf7f9ce539038637b652900a51f875be3a9760 /llvm/docs/CommandLine.html
parent7067b4f49d3e822d9478965f01f1343a539a77a2 (diff)
downloadbcm5719-llvm-cbc26fdb6ecdebd60cbd6283fc507acf3fe5b96f.tar.gz
bcm5719-llvm-cbc26fdb6ecdebd60cbd6283fc507acf3fe5b96f.zip
Support for multi-valued options in CommandLine
Makes possible to specify options that take multiple arguments (a-la -sectalign on Darwin). See documentation for details. llvm-svn: 62372
Diffstat (limited to 'llvm/docs/CommandLine.html')
-rw-r--r--llvm/docs/CommandLine.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/docs/CommandLine.html b/llvm/docs/CommandLine.html
index 7fcd66caf14..97df9f787cd 100644
--- a/llvm/docs/CommandLine.html
+++ b/llvm/docs/CommandLine.html
@@ -1146,6 +1146,17 @@ specify macro options where the option name doesn't equal the enum name. For
this macro, the first argument is the enum value, the second is the flag name,
and the second is the description.</li>
+<li><a name="cl::multi_val">The <b><tt>cl::multi_val</tt></b></a>
+attribute specifies that this option takes has multiple values
+(example: <tt>-sectalign segname sectname sectvalue</tt>). This
+attribute takes one unsigned argument - the number of values for the
+option. This attribute is valid only on <tt>cl::list</tt> options (and
+will fail with compile error if you try to use it with other option
+types). It is allowed to use all of the usual modifiers on
+multi-valued options (besides <tt>cl::ValueDisallowed</tt>,
+obviously).</li>
+
+
</ol>
You will get a compile time error if you try to use cl::values with a parser
OpenPOWER on IntegriCloud