swab(1): use the getopt error message
This commit is contained in:
parent
ca6865688a
commit
b7bc1f16ad
|
@ -52,7 +52,7 @@ fn main() -> ExitCode {
|
|||
let mut optind: usize = 1; // argv[0]
|
||||
let mut wordsize: usize = 2; // Equivalent to dd(1p).
|
||||
|
||||
while let Some(opt) = argv.getopt(":w:") {
|
||||
while let Some(opt) = argv.getopt("w:") {
|
||||
match opt.opt() {
|
||||
Ok("w") => {
|
||||
match opt.arg().unwrap().parse::<usize>() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user