Home | History | Annotate | Download | only in docs

Lines Matching full:commandline

6   <title>CommandLine 2.0 Library Manual</title>
12 CommandLine 2.0 Library Manual
110 <p>This document describes the CommandLine argument processing library. It will
111 show you how to use it, and what it can do. The CommandLine library uses a
120 CommandLine library to have the following features:</p>
123 <li>Speed: The CommandLine library is very quick and uses little resources. The
130 <li>Type Safe: As a user of CommandLine, you don't have to worry about
135 <li>No subclasses required: To use CommandLine, you instantiate variables that
146 <li>Cleaner: CommandLine supports enum and other types directly, meaning that
151 <li>Powerful: The CommandLine library supports many different types of
156 arguments</a>. This is possible because CommandLine is...</li>
158 <li>Extensible: It is very simple to add a new argument type to CommandLine.
162 <li>Labor Saving: The CommandLine library cuts down on the amount of grunt work
168 <li>Capable: The CommandLine library can handle lots of different forms of
178 <p>This document will hopefully let you jump in and start using CommandLine in
194 <p>This section of the manual runs through a simple CommandLine'ification of a
196 CommandLine library in your own program, and show you some of the cool things it
199 <p>To start out, you need to include the CommandLine header file into your
203 #include "llvm/Support/CommandLine.h"
220 system which ones we want, and what type of arguments they are. The CommandLine
226 to specify where to put the output. With the CommandLine library, this is
238 href="#list">&quot;<tt>cl::list</tt> template</a>), and tell the CommandLine library
275 style of argument, the CommandLine library allows for <a
299 <p>Again, the CommandLine library does not require the options to be specified
307 the CommandLine library will automatically issue an error if the argument is not
350 <p>The CommandLine library uses a <a href="#builtinparsers">different parser</a>
400 arguments. In addition to simple scalar arguments, the CommandLine library also
401 provides primitives to support CommandLine option <a href="#alias">aliases</a>,
464 <p>So far we have seen how the CommandLine library handles builtin types like
480 "<tt>compiler -O3 -O2</tt>". The CommandLine library would not be able to
491 CommandLine library fill it in with the appropriate level directly, which is
515 terminated with the "<tt>clEnumValEnd</tt>" argument!). The CommandLine
624 library processes the argument. The CommandLine library supports both forms so
693 CommandLine library that it is an error if the user does not specify any
769 the program does. To add this to your CommandLine program, simply pass a third
778 <a href="#cl::ParseCommandLineOptions">cl::ParseCommandLineOptions</a>(argc, argv, " CommandLine compiler example\n\n"
787 <b>OVERVIEW: CommandLine compiler example
811 <p>Now that you know the basics of how to use the CommandLine library, this
828 Using the CommandLine library, this would be specified as:</p>
969 shell itself. Using the CommandLine library, we would specify this as:</p>
1024 <tt>CommandLine.h</tt>).</p>
1191 category. The CommandLine library specifies defaults for all of these settings
1236 value for this setting allows the CommandLine library to do error checking for
1283 value to be present. In the case of the CommandLine library, a value is either
1357 modifier added to allow the CommandLine library to recognize them. Note that
1371 <p>The CommandLine library does not restrict how you use the <b><tt><a
1378 <p>To do this, the CommandLine library uses a greedy algorithm to parse the
1480 <p>Despite all of the built-in flexibility, the CommandLine option library
1558 of having the <tt>CommandLine</tt> library print out the usual version string
1560 the <tt>CommandLine</tt> facilities. Such programs should just define a small
1716 the CommandLine library uses an instance of <tt>parser&lt;type&gt;</tt> if the
1721 <p>The CommandLine library provides the following builtin parser
1733 which allows you to use the CommandLine library for all of the error checking to
1781 <p>Although the CommandLine library has a lot of functionality built into it
1783 extensibility. This section discusses how the CommandLine library works under
1795 of the CommandLine library that turns string input from the user into a