From c53aefb5acb981b2f618e7ab2d8a526851ab70bb Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Wed, 12 May 2004 18:42:35 +0000 Subject: [PATCH] Made to be HTML-4.01 (Strict) -compliant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13499 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CommandLine.html | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/docs/CommandLine.html b/docs/CommandLine.html index 3533f14f488..868e208ac20 100644 --- a/docs/CommandLine.html +++ b/docs/CommandLine.html @@ -215,10 +215,10 @@ we would like to support the unix standard '-o <filename>' option to specify where to put the output. With the CommandLine library, this is represented like this:

-

- -cl::opt<string> OutputFilename("o", cl::desc("Specify output filename"), cl::value_desc("filename")); -

+ +
+cl::opt<string> OutputFilename("o", cl::desc("Specify output filename"), cl::value_desc("filename"));
+

This declares a global variable "OutputFilename" that is used to capture the result of the "o" argument (first parameter). We specify @@ -934,7 +934,7 @@ attribute:

 bool DebugFlag;      // the actual value
 static cl::opt<bool, true>       // The parser
-Debug("debug", cl::desc("Enable debug output"), cl::Hidden,
+Debug("debug", cl::desc("Enable debug output"), cl::Hidden,
       cl::location(DebugFlag));
 
@@ -1242,6 +1242,7 @@ input option into (potentially multiple) prefix and grouping options. The strategy basically looks like this:

parse(string OrigInput) { +

  1. string input = OrigInput;
  2. if (isOption(input)) return getOption(input).parse();    // Normal option @@ -1255,11 +1256,11 @@ strategy basically looks like this:

      input = OrigInput;
      while (!isOption(input) && !input.empty()) input.pop_back();
    } -
  3. if (!OrigInput.empty()) error(); - +
  4. if (!OrigInput.empty()) error();
-}

+ +

}

@@ -1698,12 +1699,16 @@ tutorial.


- + -- 2.34.1