Index: pkg/args/lib/src/usage.dart |
diff --git a/pkg/args/lib/src/usage.dart b/pkg/args/lib/src/usage.dart |
index b83a2d518a7d858a9a740e9f106e123ad67bb4f5..45893a5e7c3030ead5602dfc9228f3615915f503 100644 |
--- a/pkg/args/lib/src/usage.dart |
+++ b/pkg/args/lib/src/usage.dart |
@@ -73,7 +73,7 @@ class Usage { |
if (option.help != null) write(2, option.help); |
if (option.allowedHelp != null) { |
- var allowedNames = option.allowedHelp.keys.toList(); |
+ var allowedNames = option.allowedHelp.keys.toList(growable: false); |
allowedNames.sort(); |
newline(); |
for (var name in allowedNames) { |