Commit 9117a09
Fix ArgumentConverted for nullable args (#2524)
* Fix ArgumentConverted for nullable args
This fixes cases where conversion of tokens in options of nullable scalar-bindable values with Artities that are not {1,1} like `Option<bool?>` but conversion is still well known.
* Add test for nullable bool option validation
---------
Co-authored-by: Juan Sebastian Hoyos Ayala <juan.s.hoyoss@outlook.com>1 parent 65678ea commit 9117a09
File tree
2 files changed
+24
-1
lines changed- src
- System.CommandLine.Tests/Binding
- System.CommandLine/Binding
2 files changed
+24
-1
lines changedLines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
273 | 290 | | |
274 | 291 | | |
275 | 292 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
175 | 181 | | |
176 | 182 | | |
177 | 183 | | |
| |||
189 | 195 | | |
190 | 196 | | |
191 | 197 | | |
192 | | - | |
| 198 | + | |
193 | 199 | | |
194 | 200 | | |
195 | 201 | | |
| |||
0 commit comments