if flag not known, print a proper message jaaj

This commit is contained in:
primardj 2024-04-05 23:46:50 +01:00
parent f3a03ab4d1
commit 89efeec505

View file

@ -55,6 +55,10 @@ fn main() {
i += 1;
}
else {
if val.len() == 2 {
println!("sv: illegal option -- {}", val.chars().nth(1).unwrap() );
// TODO: thread NOT pannic if it is not an ASCII character.
}
parser::misc::usage();
exit(100);
}