Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: sdk/lib/_internal/pub/test/pub_test.dart

Issue 122483003: Make "pub help" show global help. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/pub/test/pub_test.dart
diff --git a/sdk/lib/_internal/pub/test/pub_test.dart b/sdk/lib/_internal/pub/test/pub_test.dart
index 9651554a805e8d303c5d89947627ada8bc657a21..336e125d6dc347762da5a81077cacd7c4c0e7cb8 100644
--- a/sdk/lib/_internal/pub/test/pub_test.dart
+++ b/sdk/lib/_internal/pub/test/pub_test.dart
@@ -128,6 +128,10 @@ main() {
});
group('help', () {
+ integration('shows global help if no command is given', () {
+ schedulePub(args: ['help'], output: USAGE_STRING);
+ });
+
integration('shows help for a command', () {
schedulePub(args: ['help', 'get'],
output: '''
« sdk/lib/_internal/pub/lib/src/command.dart ('K') | « sdk/lib/_internal/pub/lib/src/command/help.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698