Get input from a human via. the command line.

Examples

```rust use std::io;

[derive(Debug)]

pub enum Gender { Male, Female, Other, }

[derive(Debug)]

pub struct Person { name: String, age: u16, gender: Gender, }

fn main() -> Result<(), io::Error> { let name = readhuman::readstringnonempty("What is your name")?; let age = readhuman::readcustomnonempty("What is your age")?; let gender = match readhuman::readchoice("What is your gender", &["male", "female", "other"], None)? { 0 => Gender::Male, 1 => Gender::Female, 2 => Gender::Other, _ => unreachable!(), }; let person = Person { name, age, gender }; println!("{:?}", person); Ok(()) } ```

See [examples/simple.rs] for a slightly more involved example.