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

Unified Diff: prepend.dart

Issue 66383002: Update Dart protoc plugin to latest SDK (Closed) Base URL: https://github.com/dart-lang/dart-protoc-plugin.git@master
Patch Set: Created 7 years, 1 month 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 | pubspec.yaml » ('j') | pubspec.yaml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: prepend.dart
diff --git a/prepend.dart b/prepend.dart
index 397cfc56aab4ebabaeed2a9c5c2d141cb67a28f6..5ca276f3a5d32f18bc20c2d88cf5568791a898d4 100755
--- a/prepend.dart
+++ b/prepend.dart
@@ -1,8 +1,8 @@
#!/usr/bin/env dart
import 'dart:io';
-main() {
- final fileName = new Options().arguments.first;
+main(List<String> arguments) {
+ final fileName = arguments.first;
final file = new File(fileName);
final content = file.readAsStringSync();
file.writeAsStringSync('#!/usr/bin/env dart\n$content');
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | pubspec.yaml » ('J')

Powered by Google App Engine
This is Rietveld 408576698