error output is now descriptive for invalid names
This commit is contained in:
parent
3b13b1f470
commit
f2cddde6be
1 changed files with 6 additions and 1 deletions
|
@ -167,7 +167,12 @@ fn main() {
|
|||
=> flag::transgender(),
|
||||
|
||||
|
||||
_ => { help::help_text(); exit(1) }
|
||||
_
|
||||
=> {
|
||||
println!("pride: no flag '{}'", subcommand.unwrap());
|
||||
help::help_text();
|
||||
exit(1)
|
||||
}
|
||||
};
|
||||
|
||||
// draw flag
|
||||
|
|
Loading…
Reference in a new issue