Skip to content

Commit 5024550

Browse files
committed
README
1 parent b2cab50 commit 5024550

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,15 @@ Ask a question, read from STDIN
166166
$un = $this->in('Please enter username: ', 'default_name');
167167
```
168168

169-
Read as boolean:
170-
171-
- `yes, y, 1, true` will convert to `TRUE`
172-
- `no, n, 0, false` will convert to `FALSE`
169+
Read as boolean, add true to third argument:
173170

174171
``` bash
175172
$bool = $this->in('Are you sure? [Y/n]', [default true/false], true);
176173
```
177174

175+
- `yes, y, 1, true` will convert to `TRUE`
176+
- `no, n, 0, false` will convert to `FALSE`
177+
178178
### `exec($cmd)`
179179

180180
A proxy to execute a cmd by `exec()` and return value.

0 commit comments

Comments
 (0)