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

Unified Diff: lib/src/parser.dart

Issue 1748333005: Make it strong mode clean. (Closed) Base URL: https://github.com/dart-lang/args.git@master
Patch Set: Created 4 years, 10 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
Index: lib/src/parser.dart
diff --git a/lib/src/parser.dart b/lib/src/parser.dart
index c36035ce37120514fa104746114ff5df7a5f9b29..55678542f1f5c519b58fc173decd6961a6dfabdb 100644
--- a/lib/src/parser.dart
+++ b/lib/src/parser.dart
@@ -35,7 +35,8 @@ class Parser {
/// The accumulated parsed options.
final Map<String, dynamic> results = <String, dynamic>{};
- Parser(this.commandName, this.grammar, this.args, this.parent, rest) {
+ Parser(this.commandName, this.grammar, this.args,
+ [this.parent, List<String> rest]) {
if (rest != null) this.rest.addAll(rest);
nweiz 2016/03/02 23:58:54 This addAll thing seems weird. Maybe change to "re
Bob Nystrom 2016/03/03 00:19:08 It is a bit weird, but if I recall, it needs to co
}
« lib/command_runner.dart ('K') | « lib/src/help_command.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698