aboutsummaryrefslogtreecommitdiff
path: root/mkusage.pl
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-12-16 16:36:12 -0500
committerB. Watson <urchlay@slackware.uk>2024-12-16 16:36:12 -0500
commitd0ca5c32cd0b3890725df7dd75a807217b8e1810 (patch)
tree595b7ab49ff18d4e954074ab69ce2950ef7a8d29 /mkusage.pl
parentb952a8a68e0f5dc76b927d1d995cdc10fb4166a0 (diff)
downloaduxd-d0ca5c32cd0b3890725df7dd75a807217b8e1810.tar.gz
add -1 option, error checking for parse_number()
Diffstat (limited to 'mkusage.pl')
-rw-r--r--mkusage.pl2
1 files changed, 1 insertions, 1 deletions
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;
}