CommandLine 2.0 Library Manual
  1. Introduction
  2. Quick Start Guide
    1. Boolean Arguments
    2. Argument Aliases
    3. Selecting an alternative from a set of possibilities
    4. Named alternatives
    5. Parsing a list of options
    6. Adding freeform text to help output
  3. Reference Guide
    1. Positional Arguments
    2. Internal vs External Storage
    3. Option Attributes
    4. Option Modifiers
    5. Top-Level Classes and Functions
    6. Builtin parsers
  4. Extension Guide
    1. Writing a custom parser
    2. Exploiting external storage
    3. Dynamically adding command line options

    Written by Chris Lattner

Introduction

Quick Start Guide
   Boolean Arguments
   Argument Aliases
   Selecting an alternative from a set of possibilities
   Named Alternatives
   Parsing a list of options
   Adding freeform text to help output
Reference Guide
   Positional Arguments


Specifying positional options with hyphens


The cl::ConsumeAfter modifier

   Internal vs External Storage
   Option Attributes
   Option Modifiers


Hiding an option from --help output


Controlling the number of occurances required and allowed


Controlling whether or not a value must be specified


Controlling other formatting options


Miscellaneous option modifiers

   Top-Level Classes and Functions


The cl::ParseCommandLineOptions function


The cl::ParseEnvironmentOptions function


The cl::opt class


The cl::list class


The cl::alias class

   Builtin parsers
Extension Guide
   Writing a custom parser
   Exploiting external storage
   Dynamically adding command line options

Chris Lattner
Last modified: Fri Aug 1 16:30:11 CDT 2003