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); |
}); |
-} |
+} |