We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebb07b3 commit 1037e33Copy full SHA for 1037e33
README.md
@@ -269,13 +269,14 @@ value is provided. This is done with the `default` method:
269
val name by parser.storing("-N", "--name", help = "...").default("John Doe")
270
```
271
272
-Note that it *is* possible to use `null` for the default:
+Note that it *is* possible to use `null` for the default, though this may
273
+require specifying the type parameter for `default` explicitly:
274
275
```kotlin
-val name by parser.storing("-N", "--name", help = "...").default(null)
276
+val name by parser.storing("-N", "--name", help = "...").default<String?>(null)
277
278
-The resulting value will be nullable (a `String?` in this case).
279
+The type of the resulting property be nullable (a `String?` in this case).
280
281
282
### Adding a Validator
0 commit comments