How to get u8 values using clap

Hi, this is probably very trivial. I'm trying to get u8 values from cli using clap. All I managed to do so far is get &str. Could someone please help me figure this out.

you need to manually parse it.

If you want more simplified CLI argument parser declaration then use structopt

1 Like

Thanks. StructOpt looks amazing. Will try that.