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

Unified Diff: sdk/lib/_internal/pub/test/global/run/missing_package_name_test.dart

Issue 399763002: Use ":" to separate package and executable name in pub global run. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/global/run/missing_package_name_test.dart
diff --git a/sdk/lib/_internal/pub/test/global/run/missing_package_arg_test.dart b/sdk/lib/_internal/pub/test/global/run/missing_package_name_test.dart
similarity index 69%
rename from sdk/lib/_internal/pub/test/global/run/missing_package_arg_test.dart
rename to sdk/lib/_internal/pub/test/global/run/missing_package_name_test.dart
index dac0523db7c983690ec77b302dd21e34a5ef68e6..a007a0b6119710353102a9267c50096a48e7a2cd 100644
--- a/sdk/lib/_internal/pub/test/global/run/missing_package_arg_test.dart
+++ b/sdk/lib/_internal/pub/test/global/run/missing_package_name_test.dart
@@ -7,12 +7,12 @@ import '../../test_pub.dart';
main() {
initConfig();
- integration('fails if no package was given', () {
- schedulePub(args: ["global", "run"],
+ integration('fails if no package name was given', () {
+ schedulePub(args: ["global", "run", "foo"],
error: """
- Must specify a package and executable to run.
+ Must specify a package from which to run the executable.
- Usage: pub global run <package> <executable> [args...]
+ Usage: pub global run <package>:<executable> [args...]
-h, --help Print usage information for this command.
Run "pub help" to see global options.

Powered by Google App Engine
This is Rietveld 408576698