Skip to content

Commit

Permalink
mention shared options in command recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 1, 2014
1 parent 85a45dd commit 37fd93c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1292,6 +1292,9 @@ that they will be picked up automatically by the command line interface?

# Leak secret passphrases
say for @{$self->app->secrets} if $args[0] eq 'secrets';

# Leak mode
say $self->app->mode if $args[0] eq 'mode';
}

1;
Expand Down Expand Up @@ -1322,6 +1325,14 @@ L<Mojolicious::Commands/"namespaces">.

1;

Some options like C<-m> for the operating mode of your application are shared
by all commands automatically.

$ ./myapp.pl ./myapp.pl spy -m production mode
production

For a full list of shared options see L<Mojolicious::Commands/"SYOPSIS">.

=head2 Running code against your application

Ever thought about running a quick one-liner against your L<Mojolicious>
Expand Down

0 comments on commit 37fd93c

Please sign in to comment.