| Index: sdk/lib/_internal/pub/lib/src/command_update.dart
|
| diff --git a/sdk/lib/_internal/pub/lib/src/command_update.dart b/sdk/lib/_internal/pub/lib/src/command_update.dart
|
| index 707ac6f6ff9b3dc2bc3ce7a00793e491e6ddb139..3db7ba848953140873953c5ed8a5a1bbbe5e40be 100644
|
| --- a/sdk/lib/_internal/pub/lib/src/command_update.dart
|
| +++ b/sdk/lib/_internal/pub/lib/src/command_update.dart
|
| @@ -19,14 +19,13 @@ class UpdateCommand extends PubCommand {
|
|
|
| String get usage => 'pub update [dependencies...]';
|
|
|
| - ArgParser get commandParser {
|
| - return new ArgParser()
|
| - ..addFlag('offline',
|
| - help: 'Use cached packages instead of accessing the network.');
|
| - }
|
| -
|
| bool get isOffline => commandOptions['offline'];
|
|
|
| + UpdateCommand() {
|
| + commandParser.addFlag('offline',
|
| + help: 'Use cached packages instead of accessing the network.');
|
| + }
|
| +
|
| Future onRun() {
|
| var future;
|
| if (commandOptions.rest.isEmpty) {
|
|
|