mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
spjspj - Rudimentary help for wrong card name in gen-card.pl
This commit is contained in:
parent
1655df614a
commit
e07ff25be6
1 changed files with 7 additions and 0 deletions
|
|
@ -96,7 +96,14 @@ if(!$cardName) {
|
||||||
chomp $cardName;
|
chomp $cardName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!exists $cards{$cardName}) {
|
if (!exists $cards{$cardName}) {
|
||||||
|
my $possible;
|
||||||
|
foreach $possible (sort keys (%cards)) {
|
||||||
|
if ($possible =~ m/^$cardName.*/img && $cardName =~ m/..../) {
|
||||||
|
print ("Did you mean $possible ?\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
die "Card name doesn't exist: $cardName\n";
|
die "Card name doesn't exist: $cardName\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue