From 35d54d84b0cc7675e72927b9c9513d4344c4f2cd Mon Sep 17 00:00:00 2001 From: DTB Date: Mon, 8 Jul 2024 11:31:35 -0600 Subject: [PATCH] swab(1): don't use the getopt error message --- src/swab.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/swab.rs b/src/swab.rs index 3bb40a5..7889a59 100644 --- a/src/swab.rs +++ b/src/swab.rs @@ -50,7 +50,7 @@ fn main() -> ExitCode { let mut wordsize: usize = 2; - while let Some(opt) = argv.getopt("w:") { + while let Some(opt) = argv.getopt(":w:") { match opt.opt() { Ok("w") => { if let Some(arg) = opt.arg() {