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

Unified Diff: pkg/watcher/example/watch.dart

Issue 52573002: Remove uses of Options from pkg, samples, tests, and third_party directories. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Edit comment Created 7 years, 2 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 | « pkg/third_party/html5lib/test/support.dart ('k') | samples/build_dart/build.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/watcher/example/watch.dart
diff --git a/pkg/watcher/example/watch.dart b/pkg/watcher/example/watch.dart
index 235578dd673678f30393c5f78217ab47c0684256..aba127d6dd452a44de73b06f66571728c046aa36 100644
--- a/pkg/watcher/example/watch.dart
+++ b/pkg/watcher/example/watch.dart
@@ -10,15 +10,14 @@ import 'dart:io';
import 'package:path/path.dart' as p;
import 'package:watcher/watcher.dart';
-main() {
- var args = new Options().arguments;
- if (args.length != 1) {
+main(List<String> arguments) {
+ if (arguments.length != 1) {
print("Usage: watch <directory path>");
return;
}
- var watcher = new DirectoryWatcher(p.absolute(args[0]));
+ var watcher = new DirectoryWatcher(p.absolute(arguments[0]));
watcher.events.listen((event) {
print(event);
});
-}
+}
« no previous file with comments | « pkg/third_party/html5lib/test/support.dart ('k') | samples/build_dart/build.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698