From be801bf248a76b6a721a2f055bc9bd75f5cf4961 Mon Sep 17 00:00:00 2001
From: Chris Lattner
Date: Thu, 6 May 2004 22:03:59 +0000
Subject: [PATCH] Add a new cl::PositionalEatsArgs flag
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13387 91177308-0d34-0410-b5e6-96231b3b80d8
---
docs/CommandLine.html | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
diff --git a/docs/CommandLine.html b/docs/CommandLine.html
index 8c59b2b3716..3533f14f488 100644
--- a/docs/CommandLine.html
+++ b/docs/CommandLine.html
@@ -870,13 +870,14 @@ name).
There are several limitations to when cl::ConsumeAfter options can
be specified. For example, only one cl::ConsumeAfter can be specified
per program, there must be at least one positional
-argument specified, and the cl::ConsumeAfter option should be a specified, there must not be any cl::list
+positional arguments, and the cl::ConsumeAfter option should be a cl::list option.
-
+
@@ -1283,10 +1284,19 @@ options are equivalent when
cl::CommaSeparated 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
cl::list option).
+
The
+cl::PositionalEatsArgs 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 "pos1" and "pos2" the
+string "-pos1 -foo -bar baz -pos2 -bork" would cause the "-foo -bar
+-baz" strings to be applied to the "-pos1" option and the
+"-bork" string to be applied to the "-pos2" option.
+
-
So far, the only miscellaneous option modifier is the
-cl::CommaSeparated modifier.
+
So far, these are the only two miscellaneous option modifiers.