mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00: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;
|
||||
}
|
||||
|
||||
|
||||
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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue