diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2009-01-16 22:54:19 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2009-01-16 22:54:19 +0000 |
commit | 7059d47a6e1a378232dce3e47b51434dec0ea608 (patch) | |
tree | 85bc2cbde9cdf86e45d9b58c9921c5049e774514 /docs/CommandLine.html | |
parent | 01bbc3e3346e58be4924363b3127ea4254919dbb (diff) | |
download | external_llvm-7059d47a6e1a378232dce3e47b51434dec0ea608.zip external_llvm-7059d47a6e1a378232dce3e47b51434dec0ea608.tar.gz external_llvm-7059d47a6e1a378232dce3e47b51434dec0ea608.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CommandLine.html')
-rw-r--r-- | docs/CommandLine.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/CommandLine.html b/docs/CommandLine.html index 7fcd66c..97df9f7 100644 --- a/docs/CommandLine.html +++ b/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 |