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

Unified Diff: tools/patch_sdk.dart

Issue 2890463003: Give usage when there are no arguments to patch_sdk. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/patch_sdk.dart
diff --git a/tools/patch_sdk.dart b/tools/patch_sdk.dart
index 425e68f093a5281fb227174a6e73c1d7171065b2..633d76290e6e4c65e6ac5331b3c51a589dab567e 100644
--- a/tools/patch_sdk.dart
+++ b/tools/patch_sdk.dart
@@ -74,6 +74,7 @@ void usage(String mode) {
}
Future _main(List<String> argv) async {
+ if (argv.isEmpty) usage('[vm|dart2js]');
var mode = argv.first;
if (mode != 'vm' && mode != 'dart2js') usage('[vm|dart2js]');
if (argv.length != 5) usage(mode);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698