Note that this patch breaks an existing test (since 2001), namely
(option-ref (getopt-long
(list "prog" "-f4")
'((foo
(value optional)
(single-char #\f))
(bar)))
'foo #f)
bails out with
prog: no such option: -4
The only way to deal with this is to give getopt-long more intelligence in
determining where command-line arguments are option
values or otherwise; this is the subject of #40719 which also allows numerical
short options, but doesn't break the test suite.
My suggestion would be to dismiss (close) this bug report at this time.