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

Unified Diff: sdk/lib/_internal/pub/lib/src/command.dart

Issue 136063005: Add a "cache add" command to download packages to the cache. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/command/cache.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/command.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command.dart b/sdk/lib/_internal/pub/lib/src/command.dart
index 3f6f35e13f63143fea65a945e9d83edd6bed7dcc..d5eb6eabef02e3226ffb7e730a550f997fb03b39 100644
--- a/sdk/lib/_internal/pub/lib/src/command.dart
+++ b/sdk/lib/_internal/pub/lib/src/command.dart
@@ -181,6 +181,8 @@ abstract class PubCommand {
}
/// Displays usage information for this command.
+ ///
+ /// If [description] is omitted, defaults to the command's description.
void printUsage([String description]) {
if (description == null) description = this.description;
log.message('$description\n\n${_getUsage()}');
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/command/cache.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698