For my RUST program, I am using Clap to parse my command line arguments. I want to let users input flags like so: usage: file [-bhLs] [FILE...] my current struct is
struct Args {
/// option for check
#[arg(default_value ="-h")]
option: String,
/// filename to check
#[arg(default_value ="")]
filename: String, }
when I try ./file -b foo.txt it says
`error: Found argument '-b' which wasn't expected, or isn't valid in this context
If you tried to supply '-b' as a value rather than a flag, use '-- -b'
Usage: file [OPTION] [FILENAME]`
How can I fix this problem and allow muti-option flags like -bhL and -hLs?