Skip to content

Commit

Permalink
slightly better command example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 20, 2012
1 parent 399986c commit 9f531cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Changes
@@ -1,4 +1,7 @@

3.51 2012-10-21
- Improved documentation.

3.50 2012-10-20
- Improved option handling of all commands.

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious.pm
Expand Up @@ -38,7 +38,7 @@ has static => sub { Mojolicious::Static->new };
has types => sub { Mojolicious::Types->new };

our $CODENAME = 'Rainbow';
our $VERSION = '3.50';
our $VERSION = '3.51';

sub AUTOLOAD {
my $self = shift;
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1056,10 +1056,10 @@ that they will be picked up automatically by the command line interface?
has usage => "usage: $0 spy [TARGET]\n";

sub run {
my ($self, $whatever) = @_;
my ($self, $target) = @_;

# Leak secret passphrase
if ($whatever eq 'secret') {
if ($target eq 'secret') {
my $secret = $self->app->secret;
say qq{The secret of this application is "$secret".};
}
Expand Down

0 comments on commit 9f531cb

Please sign in to comment.