OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This class works with command lines: building and parsing. | 5 // This class works with command lines: building and parsing. |
6 // Arguments with prefixes ('--', '-', and on Windows, '/') are switches. | 6 // Arguments with prefixes ('--', '-', and on Windows, '/') are switches. |
7 // Switches will precede all other arguments without switch prefixes. | 7 // Switches will precede all other arguments without switch prefixes. |
8 // Switches can optionally have values, delimited by '=', e.g., "-switch=value". | 8 // Switches can optionally have values, delimited by '=', e.g., "-switch=value". |
9 // An argument of "--" will terminate switch parsing during initialization, | 9 // An argument of "--" will terminate switch parsing during initialization, |
10 // interpreting subsequent tokens as non-switch arguments, regardless of prefix. | 10 // interpreting subsequent tokens as non-switch arguments, regardless of prefix. |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 | 219 |
220 // Parsed-out switch keys and values. | 220 // Parsed-out switch keys and values. |
221 SwitchMap switches_; | 221 SwitchMap switches_; |
222 | 222 |
223 // The index after the program and switches, any arguments start here. | 223 // The index after the program and switches, any arguments start here. |
224 size_t begin_args_; | 224 size_t begin_args_; |
225 }; | 225 }; |
226 | 226 |
227 } // namespace base | 227 } // namespace base |
228 | 228 |
229 // TODO(brettw) remove once all callers specify the namespace properly. | |
230 using base::CommandLine; | |
231 | |
232 #endif // BASE_COMMAND_LINE_H_ | 229 #endif // BASE_COMMAND_LINE_H_ |
OLD | NEW |