diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-06 22:03:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-06 22:03:59 +0000 |
commit | b68bd769786b039627fbbce6df68c049da9a271b (patch) | |
tree | f5e2b902b94fbfcc217667eb9e6c3285bd1c923c /llvm/docs/CommandLine.html | |
parent | f6709bc5795f0af48c29668c95b5b10e12d41a94 (diff) | |
download | bcm5719-llvm-b68bd769786b039627fbbce6df68c049da9a271b.tar.gz bcm5719-llvm-b68bd769786b039627fbbce6df68c049da9a271b.zip |
Add a new cl::PositionalEatsArgs flag
llvm-svn: 13387
Diffstat (limited to 'llvm/docs/CommandLine.html')
-rw-r--r-- | llvm/docs/CommandLine.html | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/llvm/docs/CommandLine.html b/llvm/docs/CommandLine.html index 8c59b2b3716..3533f14f488 100644 --- a/llvm/docs/CommandLine.html +++ b/llvm/docs/CommandLine.html @@ -870,13 +870,14 @@ name).</p> <p>There are several limitations to when <tt>cl::ConsumeAfter</tt> options can be specified. For example, only one <tt>cl::ConsumeAfter</tt> can be specified per program, there must be at least one <a href="#positional">positional -argument</a> specified, and the <tt>cl::ConsumeAfter</tt> option should be a <a +argument</a> specified, there must not be any <a href="#cl::list">cl::list</a> +positional arguments, and the <tt>cl::ConsumeAfter</tt> option should be a <a href="#cl::list">cl::list</a> option.</p> </div> <!-- ======================================================================= --> -<div class="subsection"> +<div class="doc_subsection"> <a name="storage">Internal vs External Storage</a> </div> @@ -1283,10 +1284,19 @@ options are equivalent when <tt>cl::CommaSeparated</tt> is specified: makes sense to be used in a case where the option is allowed to accept one or more values (i.e. it is a <a href="#cl::list">cl::list</a> option).</li> +<li><a name="cl::PositionalEatsArgs">The +<b><tt>cl::PositionalEatsArgs</tt></b></a> modifier (which only applies to +positional arguments, and only makes sense for lists) indicates that positional +argument should consume any strings after it (including strings that start with +a "-") up until another recognized positional argument. For example, if you +have two "eating" positional arguments "<tt>pos1</tt>" and "<tt>pos2</tt>" the +string "<tt>-pos1 -foo -bar baz -pos2 -bork</tt>" would cause the "<tt>-foo -bar +-baz</tt>" strings to be applied to the "<tt>-pos1</tt>" option and the +"<tt>-bork</tt>" string to be applied to the "<tt>-pos2</tt>" option.</li> + </ul> -<p>So far, the only miscellaneous option modifier is the -<tt>cl::CommaSeparated</tt> modifier.</p> +<p>So far, these are the only two miscellaneous option modifiers.</p> </div> |