llvm.org GIT mirror llvm / dd499c3
docs/CommandLine.html: "ize. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129267 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 9 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
230230 cl::opt<string> OutputFilename("o", cl::desc("Specify output filename"), cl::value_desc("filename"));
231231
232232
233

This declares a global variable "OutputFilename" that is used to

234 capture the result of the "o" argument (first parameter). We specify
235 that this is a simple scalar option by using the "
236 href="#cl::opt">cl::opt" template (as opposed to the
237 href="#list">"cl::list template), and tell the CommandLine library
233

This declares a global variable "OutputFilename" that is used to

234 capture the result of the "o" argument (first parameter). We specify
235 that this is a simple scalar option by using the "
236 href="#cl::opt">cl::opt" template (as opposed to the
237 href="#list">"cl::list template), and tell the CommandLine library
238238 that the data type that we are parsing is a string.

239239
240240

The second and third parameters (which are optional) are used to specify what