Boolean Input - HomerHaddock/Input-API GitHub Wiki
Boolean only has one input function named yesNo since 99.9% of boolean input are just Yes/No questions.
Usage is as follows:
import inputapi as inp
# Method 1
inp.yesNo()
# Method 2
inp.boolean.yesNo()
Parameters
| Parameter | data type | default | Purpose |
|---|---|---|---|
| request | string | 'Yes or no?' |
Is displayed when requesting input |
| allowNumeric | boolean | True |
Allows for numeric input (Y=1, n=2) |
| clearOnLoad | boolean | False |
Clears terminal before loading input |
| clearWhenDone | boolean | False |
Clears terminal after getting input |