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

Unified Diff: sdk/lib/_internal/pub/test/lish/force_cannot_be_combined_with_dry_run_test.dart

Issue 138723005: Support subcommands in pub and pub help. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Infer hiddenness from subcommands. Created 6 years, 10 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/lish/force_cannot_be_combined_with_dry_run_test.dart
diff --git a/sdk/lib/_internal/pub/test/lish/force_cannot_be_combined_with_dry_run_test.dart b/sdk/lib/_internal/pub/test/lish/force_cannot_be_combined_with_dry_run_test.dart
index 26231e3e704c436582d6b56898f384fea4a3315f..c436ff2467c68d8087badfbc40f90e21f9bc4167 100644
--- a/sdk/lib/_internal/pub/test/lish/force_cannot_be_combined_with_dry_run_test.dart
+++ b/sdk/lib/_internal/pub/test/lish/force_cannot_be_combined_with_dry_run_test.dart
@@ -14,7 +14,16 @@ main() {
integration('--force cannot be combined with --dry-run', () {
schedulePub(args: ['lish', '--force', '--dry-run'],
- error: "Cannot use both --force and --dry-run.",
+ error: """
+ Cannot use both --force and --dry-run.
+
+ Usage: pub publish [options]
+ -h, --help Print usage information for this command.
+ -n, --dry-run Validate but do not publish the package.
+ -f, --force Publish without confirmation if there are no errors.
+ --server The package server to which to upload this package.
+ (defaults to "https://pub.dartlang.org")
+ """,
exitCode: exit_codes.USAGE);
});
}
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/utils.dart ('k') | sdk/lib/_internal/pub/test/lish/package_creation_provides_an_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698