1
0
mirror of synced 2026-01-13 23:26:10 +00:00

Don't only allow lowercase "b" for "bytes".

Also put some examples in the according error message.
This commit is contained in:
Axel Beckert 2013-04-11 10:32:20 +02:00
parent a89aa86511
commit cb3227d61b

View File

@ -1422,8 +1422,8 @@ sub checkOption
# Define argument types
my %types = (
integerWithSuffix => {
check => qr/^[0-9.]+[GgMmKk]b?$/,
message => "takes a suffixed integer.\n",
check => qr/^[0-9.]+[GMk]B?$/i,
message => "takes a suffixed (mb, MB, G, k, etc.) integer.\n",
},
distribution => {
check => sub { -d "/usr/lib/xen-tools/$_[0].d" },