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

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

Issue 212923006: Rationalize arg handling for pub build and serve. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. Created 6 years, 9 months 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 34b3a049b079e5e4b515c5b87c76e34d3ff6fe43..7e25cdf718c98931f367444409883d9de508eebf 100644
--- a/sdk/lib/_internal/pub/test/pub_test.dart
+++ b/sdk/lib/_internal/pub/test/pub_test.dart
@@ -87,10 +87,10 @@ main() {
schedulePub(args: ['cache', '--help'],
output: '''
Work with the system cache.
-
+
Usage: pub cache <subcommand>
-h, --help Print usage information for this command.
-
+
Available subcommands:
add Install a package.
''');
@@ -105,7 +105,7 @@ main() {
schedulePub(args: ['quylthulg'],
error: '''
Could not find a command named "quylthulg".
-
+
Available commands:
build Apply transformers to build a package.
cache Work with the system cache.
@@ -124,7 +124,7 @@ main() {
schedulePub(args: ['cache', 'quylthulg'],
error: '''
Could not find a subcommand named "quylthulg" for "pub cache".
-
+
Usage: pub cache <subcommand>
-h, --help Print usage information for this command.
@@ -214,11 +214,15 @@ main() {
output: '''
Run a local web development server.
- By default, this serves "web/" and "test/", but an explicit list of
+ By default, this serves "web/" and "test/", but an explicit list of
directories to serve can be provided as well.
Usage: pub serve [directories...]
-h, --help Print usage information for this command.
+ --mode Mode to run transformers in.
+ (defaults to "debug")
+
+ --all Use all default source directories.
--hostname The hostname to listen on.
(defaults to "localhost")
@@ -229,8 +233,6 @@ main() {
(defaults to on)
--[no-]force-poll Force the use of a polling filesystem watcher.
- --mode Mode to run transformers in.
- (defaults to "debug")
''');
});
@@ -270,7 +272,7 @@ main() {
Usage: pub cache <subcommand>
-h, --help Print usage information for this command.
-
+
Available subcommands:
add Install a package.
''',

Powered by Google App Engine
This is Rietveld 408576698