From d0ca5c32cd0b3890725df7dd75a807217b8e1810 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 16 Dec 2024 16:36:12 -0500 Subject: add -1 option, error checking for parse_number() --- mkusage.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mkusage.pl') diff --git a/mkusage.pl b/mkusage.pl index f8fe485..0506d8c 100644 --- a/mkusage.pl +++ b/mkusage.pl @@ -4,7 +4,7 @@ print "char *usage_opts[] = {\n"; while(<>) { chomp; - if(/^-[a-zA-Z]/) { + if(/^-[a-zA-Z\d]/) { $opt = $_; next; } -- cgit v1.2.3