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

Side by Side Diff: lib/src/usage.dart

Issue 1575233006: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/args@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « lib/src/parser.dart ('k') | lib/src/usage_exception.dart » ('j') | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library args.src.usage;
6
7 import 'dart:math'; 5 import 'dart:math';
8 6
9 import '../args.dart'; 7 import '../args.dart';
10 8
11 /// Takes an [ArgParser] and generates a string of usage (i.e. help) text for 9 /// Takes an [ArgParser] and generates a string of usage (i.e. help) text for
12 /// its defined options. 10 /// its defined options.
13 /// 11 ///
14 /// Internally, it works like a tabular printer. The output is divided into 12 /// Internally, it works like a tabular printer. The output is divided into
15 /// three horizontal columns, like so: 13 /// three horizontal columns, like so:
16 /// 14 ///
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 String padRight(String source, int length) { 242 String padRight(String source, int length) {
245 final result = new StringBuffer(); 243 final result = new StringBuffer();
246 result.write(source); 244 result.write(source);
247 245
248 while (result.length < length) { 246 while (result.length < length) {
249 result.write(' '); 247 result.write(' ');
250 } 248 }
251 249
252 return result.toString(); 250 return result.toString();
253 } 251 }
OLDNEW
« no previous file with comments | « lib/src/parser.dart ('k') | lib/src/usage_exception.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698