Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[bin/crypt] fixed 0-arguments error message

  • Loading branch information...
commit 1385e42c33a8aa1902db3c147c8034d6fa80a9e6 1 parent ae59ad9
@masak authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/crypt
View
4 bin/crypt
@@ -948,7 +948,9 @@ multi MAIN() {
my @req_args = %commands{$verb}.list;
when @args != @req_args {
say "You passed in {+@args} arguments, but $verb requires {+@req_args}.";
- say "The arguments are {map { "<$_>" }, @req_args}.";
+ if @req_args {
+ say "The arguments are {map { "<$_>" }, @req_args}.";
+ }
}
my @events = $game."$verb"(|@args);
for @events {
Please sign in to comment.
Something went wrong with that request. Please try again.