We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2cab50 commit 5024550Copy full SHA for 5024550
README.md
@@ -166,15 +166,15 @@ Ask a question, read from STDIN
166
$un = $this->in('Please enter username: ', 'default_name');
167
```
168
169
-Read as boolean:
170
-
171
-- `yes, y, 1, true` will convert to `TRUE`
172
-- `no, n, 0, false` will convert to `FALSE`
+Read as boolean, add true to third argument:
173
174
``` bash
175
$bool = $this->in('Are you sure? [Y/n]', [default true/false], true);
176
177
+- `yes, y, 1, true` will convert to `TRUE`
+- `no, n, 0, false` will convert to `FALSE`
+
178
### `exec($cmd)`
179
180
A proxy to execute a cmd by `exec()` and return value.
0 commit comments