| Index: sdk/lib/_internal/pub_generated/lib/src/command/deps.dart
|
| diff --git a/sdk/lib/_internal/pub_generated/lib/src/command/deps.dart b/sdk/lib/_internal/pub_generated/lib/src/command/deps.dart
|
| index 4763bef5298e78eae524a30f40fc73c39b94be78..ce5bcdd107fd219a8bf87c2179e2cbb60a75d3e6 100644
|
| --- a/sdk/lib/_internal/pub_generated/lib/src/command/deps.dart
|
| +++ b/sdk/lib/_internal/pub_generated/lib/src/command/deps.dart
|
| @@ -16,10 +16,12 @@ import '../utils.dart';
|
|
|
| /// Handles the `deps` pub command.
|
| class DepsCommand extends PubCommand {
|
| + String get name => "deps";
|
| String get description => "Print package dependencies.";
|
| List<String> get aliases => const ["dependencies", "tab"];
|
| - String get usage => "pub deps";
|
| + String get invocation => "pub deps";
|
| String get docUrl => "http://dartlang.org/tools/pub/cmd/pub-deps.html";
|
| + bool get takesArguments => false;
|
|
|
| /// The loaded package graph.
|
| PackageGraph _graph;
|
| @@ -28,7 +30,7 @@ class DepsCommand extends PubCommand {
|
| StringBuffer _buffer;
|
|
|
| DepsCommand() {
|
| - commandParser.addOption(
|
| + argParser.addOption(
|
| "style",
|
| abbr: "s",
|
| help: "How output should be displayed.",
|
| @@ -36,14 +38,14 @@ class DepsCommand extends PubCommand {
|
| defaultsTo: "tree");
|
| }
|
|
|
| - Future onRun() {
|
| + Future run() {
|
| return entrypoint.loadPackageGraph().then((graph) {
|
| _graph = graph;
|
| _buffer = new StringBuffer();
|
|
|
| _buffer.writeln(_labelPackage(entrypoint.root));
|
|
|
| - switch (commandOptions["style"]) {
|
| + switch (argResults["style"]) {
|
| case "compact":
|
| _outputCompact();
|
| break;
|
|
|