Skip to content

Commit

Permalink
[bin/crypt] added 'help' command
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Masak committed Jul 5, 2012
1 parent 4d8064f commit 42e6642
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/crypt
Expand Up @@ -358,6 +358,13 @@ multi MAIN() {
$command .= lc;
$command .= trim;

when /^help>>/|"h"|"?" {
say "Here are some (made-up) examples of commands you can use:";
say "";
say "look";
say "[walk] north/south/east/west";
}

my $verb = $command.words[0];
my @args = $command.words[1..*];
when %commands.exists($verb) {
Expand Down

0 comments on commit 42e6642

Please sign in to comment.