| Index: lib/src/command/upgrade.dart
|
| diff --git a/lib/src/command/upgrade.dart b/lib/src/command/upgrade.dart
|
| index 2ec28c9da0fcd8aa7c2e8c7025280293c09dd079..25c22f9bcf62d02a433553695fba4932357fb99b 100644
|
| --- a/lib/src/command/upgrade.dart
|
| +++ b/lib/src/command/upgrade.dart
|
| @@ -28,13 +28,18 @@ class UpgradeCommand extends PubCommand {
|
|
|
| argParser.addFlag('precompile', defaultsTo: true,
|
| help: "Precompile executables and transformed dependencies.");
|
| +
|
| + argParser.addFlag('packages-dir',
|
| + negatable: true, defaultsTo: true,
|
| + help: "Generate a packages/ directory when installing packages.");
|
| }
|
|
|
| Future run() async {
|
| await entrypoint.acquireDependencies(SolveType.UPGRADE,
|
| useLatest: argResults.rest,
|
| dryRun: argResults['dry-run'],
|
| - precompile: argResults['precompile']);
|
| + precompile: argResults['precompile'],
|
| + packagesDir: argResults['packages-dir']);
|
|
|
| if (isOffline) {
|
| log.warning("Warning: Upgrading when offline may not update you to the "
|
|
|