We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f92041 commit 585a44eCopy full SHA for 585a44e
pkgs/args/lib/src/usage.dart
@@ -87,13 +87,13 @@ class _Usage {
87
_write(0, _abbreviation(option));
88
_write(1, '${_longOption(option)}${_mandatoryOption(option)}');
89
90
- if (option.help != null) _write(2, option.help!);
+ if (option.help case final help?) _write(2, help);
91
92
- if (option.allowedHelp != null) {
+ if (option.allowedHelp case final allowedHelp?) {
93
_newline();
94
- for (var name in option.allowedHelp!.keys) {
+ for (var MapEntry(key: name, value: content) in allowedHelp.entries) {
95
_write(1, _allowedTitle(option, name));
96
- _write(2, option.allowedHelp![name]!);
+ _write(2, content);
97
}
98
99
} else if (option.allowed != null) {
0 commit comments