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

Unified Diff: utils/pub/pub.dart

Issue 11485012: Clean up command help. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
Index: utils/pub/pub.dart
diff --git a/utils/pub/pub.dart b/utils/pub/pub.dart
index 21e2e44b46648c132e4e42fd0a9842bb7352a1ec..f384daf535c980370565129afbf5a28d79886acc 100644
--- a/utils/pub/pub.dart
+++ b/utils/pub/pub.dart
@@ -56,21 +56,21 @@ Map<String, PubCommand> get pubCommands {
ArgParser get pubArgParser {
var parser = new ArgParser();
parser.addFlag('help', abbr: 'h', negatable: false,
- help: 'print this usage information');
+ help: 'Print this usage information.');
parser.addFlag('version', negatable: false,
- help: 'print the version of pub');
+ help: 'Print pub version.');
parser.addFlag('trace',
- help: 'print debugging information when an error occurs');
+ help: 'Print debugging information when an error occurs.');
parser.addOption('verbosity',
- help: 'control output verbosity',
+ help: 'Control output verbosity.',
allowed: ['normal', 'io', 'all'],
allowedHelp: {
- 'normal': 'errors, warnings, and user messages are shown',
- 'io': 'IO operations are also shown',
- 'all': 'all output including internal tracing messages are shown'
+ 'normal': 'Errors, warnings, and user messages are shown.',
+ 'io': 'IO operations are also shown.',
+ 'all': 'All output including internal tracing messages are shown.'
});
parser.addFlag('verbose', abbr: 'v', negatable: false,
- help: 'shortcut for "--verbosity=all"');
+ help: 'Shortcut for "--verbosity=all"');
return parser;
}
@@ -297,9 +297,7 @@ abstract class PubCommand {
if (description == null) description = this.description;
var buffer = new StringBuffer();
- buffer.add(description);
- buffer.add('');
- buffer.add('Usage: $usage');
+ buffer.add('$description\nUsage: $usage');
var commandUsage = commandParser.getUsage();
if (!commandUsage.isEmpty) {

Powered by Google App Engine
This is Rietveld 408576698