From 29f7ee38554d521e32bd35df5b06037e6ce9b371 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Tue, 22 May 2007 18:32:34 +0000 Subject: [PATCH] Document boolOrDefault and its parser. llvm-svn: 37290 --- docs/CommandLine.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/CommandLine.html b/docs/CommandLine.html index 8358d8756e1..bf80ec07d45 100644 --- a/docs/CommandLine.html +++ b/docs/CommandLine.html @@ -75,6 +75,8 @@ parser
  • The parser<bool> specialization
  • +
  • The parser<boolOrDefault> + specialization
  • The parser<string> specialization
  • The parser<int> @@ -1702,6 +1704,12 @@ is used to convert boolean strings to a boolean value. Currently accepted strings are "true", "TRUE", "True", "1", "false", "FALSE", "False", and "0".
  • +
  • The parser<boolOrDefault> + specialization is used for cases where the value is boolean, +but we also need to know whether the option was specified at all. boolOrDefault +is an enum with 3 values, BOU_UNSET, BOU_TRUE and BOU_FALSE. This parser accepts +the same strings as parser<bool>.
  • +
  • The parser<string> specialization simply stores the parsed string into the string value specified. No conversion or modification of the data is performed.