| Index: sdk/lib/_internal/pub/bin/pub.dart
|
| diff --git a/sdk/lib/_internal/pub/bin/pub.dart b/sdk/lib/_internal/pub/bin/pub.dart
|
| index f8491d1a2eda74e920e6ecaa47fd65d2e97a54e2..1a3e16ce1733ea65cd2ccce97c8678fb9716723d 100644
|
| --- a/sdk/lib/_internal/pub/bin/pub.dart
|
| +++ b/sdk/lib/_internal/pub/bin/pub.dart
|
| @@ -151,6 +151,10 @@ void printUsage([String description = 'Pub is a package manager for Dart.']) {
|
| for (var command in PubCommand.commands.keys) {
|
| // Hide aliases.
|
| if (PubCommand.commands[command].aliases.indexOf(command) >= 0) continue;
|
| +
|
| + // Hide undocumented commands.
|
| + if (PubCommand.commands[command].hidden) continue;
|
| +
|
| length = math.max(length, command.length);
|
| names.add(command);
|
| }
|
|
|