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.
Thanks,

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.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.