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

Unified Diff: lib/src/arg_results.dart

Issue 870883006: Fixed implementation of ArgResults.options to really use Iterable<String> instead of Iterable<dynam… (Closed) Base URL: git@github.com:dart-lang/args.git@master
Patch Set: Created 5 years, 11 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/arg_results.dart
diff --git a/lib/src/arg_results.dart b/lib/src/arg_results.dart
index de9cca7010f65f4bedfebf6da9180016beb7f1b9..15fb5bbc3c4f288e6df3288feb9387b232678447 100644
--- a/lib/src/arg_results.dart
+++ b/lib/src/arg_results.dart
@@ -70,7 +70,7 @@ class ArgResults {
/// This includes the options whose values were parsed or that have defaults.
/// Options that weren't present and have no default will be omitted.
Iterable<String> get options {
- var result = new Set.from(_parsed.keys);
+ var result = new Set<String>.from(_parsed.keys);
// Include the options that have defaults.
_parser.options.forEach((name, option) {
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698