Skip to content

Commit e67fcb2

Browse files
committed
Add a remark about Value conversions
1 parent b500b12 commit e67fcb2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ Note that this is not how the values are actually stored, because a `Table` can
109109

110110
Any value that can be supplied multiple times will be represented by a `seq[string]`, even if the user provides just one. To obtain this `seq`, use `@value`. To obtain its length, use `value.len` or `@value.len`. To obtain the n-th value (0-indexed), both `value[i]` and `@value[i]` will work. If you are sure there is exactly one value, `$value` is the same as `value[0]`.
111111

112+
Note that you can use any kind of value in a boolean context and convert any value to `string`.
113+
112114
Look [in the source code](src/docopt.nim#L30) to find out more about these conversions.
113115

114116

0 commit comments

Comments
 (0)