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

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

Issue 14092006: Move pub's arg parsing to bin/pub.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
Index: sdk/lib/_internal/pub/lib/src/command_help.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command_help.dart b/sdk/lib/_internal/pub/lib/src/command_help.dart
index 961546a3da013dd3e74a2403c0f403f857d26aa2..25218bc3ad31ad97325e906d0647cdd4a3bb75c2 100644
--- a/sdk/lib/_internal/pub/lib/src/command_help.dart
+++ b/sdk/lib/_internal/pub/lib/src/command_help.dart
@@ -6,10 +6,11 @@ library command_help;
import 'dart:async';
import 'dart:io' as io;
+
+import 'command.dart';
import 'exit_codes.dart' as exit_codes;
import 'io.dart';
import 'log.dart' as log;
-import 'pub.dart';
/// Handles the `help` pub command.
class HelpCommand extends PubCommand {
@@ -22,7 +23,7 @@ class HelpCommand extends PubCommand {
printUsage();
} else {
var name = commandOptions.rest[0];
- var command = pubCommands[name];
+ var command = PubCommand.commands[name];
if (command == null) {
log.error('Could not find a command named "$name".');
log.error('Run "pub help" to see available commands.');
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/command_cache.dart ('k') | sdk/lib/_internal/pub/lib/src/command_install.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698