| Index: sdk/lib/_internal/pub/lib/src/command/get.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/command/get.dart b/sdk/lib/_internal/pub/lib/src/command/get.dart
|
| index fbe86ae08efb154d06cb9257e5f778820979f307..97dd50e0ecea6094070a6ae8a7331278ec86d5ff 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/command/get.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/command/get.dart
|
| @@ -7,7 +7,6 @@ library pub.command.get;
|
| import 'dart:async';
|
|
|
| import '../command.dart';
|
| -import '../log.dart' as log;
|
|
|
| /// Handles the `get` pub command.
|
| class GetCommand extends PubCommand {
|
| @@ -19,10 +18,12 @@ class GetCommand extends PubCommand {
|
| GetCommand() {
|
| commandParser.addFlag('offline',
|
| help: 'Use cached packages instead of accessing the network.');
|
| +
|
| + commandParser.addFlag('dry-run', abbr: 'n', negatable: false,
|
| + help: "Report what dependencies would change but don't change any.");
|
| }
|
|
|
| Future onRun() {
|
| - return entrypoint.acquireDependencies()
|
| - .then((_) => log.message("Got dependencies!"));
|
| + return entrypoint.acquireDependencies(dryRun: commandOptions['dry-run']);
|
| }
|
| }
|
|
|