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

Unified Diff: pkg/args/lib/args.dart

Issue 10947044: Commit patch: https://codereview.chromium.org/10914320/ (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 | pkg/args/test/args_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/args/lib/args.dart
diff --git a/pkg/args/lib/args.dart b/pkg/args/lib/args.dart
index b49bc1a3dace91a51a128c0bbccec251fc0d963f..dd77d3767e97989d0d79b9a42e7c6a626620c121 100644
--- a/pkg/args/lib/args.dart
+++ b/pkg/args/lib/args.dart
@@ -239,14 +239,14 @@ class ArgParser {
*/
void addOption(String name, [String abbr, String help, List<String> allowed,
Map<String, String> allowedHelp, String defaultsTo,
- void callback(bool value), bool allowMultiple = false]) {
+ void callback(value), bool allowMultiple = false]) {
_addOption(name, abbr, help, allowed, allowedHelp, defaultsTo,
callback, isFlag: false, allowMultiple: allowMultiple);
}
void _addOption(String name, String abbr, String help, List<String> allowed,
Map<String, String> allowedHelp, defaultsTo,
- void callback(bool value), [bool isFlag, bool negatable = false,
+ void callback(value), [bool isFlag, bool negatable = false,
bool allowMultiple = false]) {
// Make sure the name isn't in use.
if (_options.containsKey(name)) {
« no previous file with comments | « no previous file | pkg/args/test/args_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698