Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: pkg/args/lib/args.dart

Issue 10985035: Apply patch from https://codereview.chromium.org/10967042/. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** 5 /**
6 * This library lets you define parsers for parsing raw command-line arguments 6 * This library lets you define parsers for parsing raw command-line arguments
7 * into a set of options and values using [GNU][] and [POSIX][] style options. 7 * into a set of options and values using [GNU][] and [POSIX][] style options.
8 * 8 *
9 * ## Defining options ## 9 * ## Defining options ##
10 * 10 *
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 * Will display something like: 172 * Will display something like:
173 * 173 *
174 * --mode The compiler configuration 174 * --mode The compiler configuration
175 * [debug, release] 175 * [debug, release]
176 * 176 *
177 * --[no-]verbose Show additional diagnostic info 177 * --[no-]verbose Show additional diagnostic info
178 * --arch The architecture to compile for 178 * --arch The architecture to compile for
179 * 179 *
180 * [arm] ARM Holding 32-bit chip 180 * [arm] ARM Holding 32-bit chip
181 * [ia32] Intel x86 181 * [ia32] Intel x86
182 *
183 * To assist the formatting of the usage help, single line help text will
184 * be followed by a single new line. Options with multi-line help text
185 * will be followed by two new lines. This provides spatial diversity between
186 * options.
182 * 187 *
183 * [posix]: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.h tml#tag_12_02 188 * [posix]: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.h tml#tag_12_02
184 * [gnu]: http://www.gnu.org/prep/standards/standards.html#Command_002dLine-Inte rfaces 189 * [gnu]: http://www.gnu.org/prep/standards/standards.html#Command_002dLine-Inte rfaces
185 */ 190 */
186 #library('args'); 191 #library('args');
187 192
188 #import('dart:math'); 193 #import('dart:math');
189 194
190 // TODO(rnystrom): Use "package:" URL here when test.dart can handle pub. 195 // TODO(rnystrom): Use "package:" URL here when test.dart can handle pub.
191 #import('src/utils.dart'); 196 #import('src/utils.dart');
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 allowedBuffer.add(allowed); 776 allowedBuffer.add(allowed);
772 if (allowed == option.defaultValue) { 777 if (allowed == option.defaultValue) {
773 allowedBuffer.add(' (default)'); 778 allowedBuffer.add(' (default)');
774 } 779 }
775 first = false; 780 first = false;
776 } 781 }
777 allowedBuffer.add(']'); 782 allowedBuffer.add(']');
778 return allowedBuffer.toString(); 783 return allowedBuffer.toString();
779 } 784 }
780 } 785 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698