if flag not known, print a proper message jaaj
This commit is contained in:
parent
f3a03ab4d1
commit
89efeec505
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue