Lines Matching +full:command +full:- +full:line
2 // Use of this source code is governed by a BSD-style license that can be
5 // This class works with command lines: building and parsing.
6 // Arguments with prefixes ('--', '-', and on Windows, '/') are switches.
8 // Switches can optionally have values, delimited by '=', e.g., "-switch=value".
9 // An argument of "--" will terminate switch parsing during initialization,
10 // interpreting subsequent tokens as non-switch arguments, regardless of prefix.
12 // There is a singleton read-only CommandLine that represents the command line
35 // The native command line string type.
49 // Construct a new command line with |program| as argv[0].
52 // Construct a new command line from an argument list.
63 // By default this class will treat command-line arguments beginning with
67 // function BEFORE initializing the current process' global command line
72 // Normally when the CommandLine singleton is initialized it gets the command
73 // line via the GetCommandLineW API and then uses the shell32 API
74 // CommandLineToArgvW to parse the command line and convert it back to
82 // don't trust the CRT's parsing of the command line, but it still must be
83 // called to set up the command line. Returns false if initialization has
90 // outer library that needs to be able to terminate, and be re-initialized).
96 // command line. Note: returned value is mutable, but not thread safe;
111 // Constructs and returns the represented command line string.
119 // Constructs and returns the represented command line string. Assumes the
120 // command line contains placeholders (eg, %1) and quotes any program or
124 // placeholders should be replaced *before* converting the command line to a
140 // command line contains placeholders (eg, %1) and quotes any argument with a
150 // Returns the original command line string as a vector of strings.
153 // Get and Set the program part of the command line string (the first item).
157 // Returns true if this command line contains the given switch.
175 // Append a switch [with optional value] to the command line.
185 // Copy a set of switches (and any values) from another command line.
191 // Get the remaining arguments to the command.
194 // Append an argument to the command line. Note that the argument is quoted
195 // properly such that it is interpreted as one argument to the target command.
196 // AppendArg is primarily for ASCII; non-ASCII input is interpreted as UTF-8.
202 // Append the switches and arguments from another command line to this one.
206 // Insert a command before the current command.
207 // Common for debuggers, like "gdb --args".
211 // Initialize by parsing the given command line string.
220 // process's command line and then add some flags to it. For example:
232 // The singleton CommandLine representing the current process's command line.
235 // The argv array: { program, [(--|-|/)switch[=value]]*, [--], [argument]* }
238 // Parsed-out switch keys and values.