From: Dale Johannesen Date: Tue, 22 May 2007 18:32:34 +0000 (+0000) Subject: Document boolOrDefault and its parser. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0f2c8fc82900a50fcba3774f302ac9cf47f36971;p=oota-llvm.git Document boolOrDefault and its parser. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37290 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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.