Skip to content

Commit

Permalink
wp-env: Ensure the environment is used with the logs command. (#27907)
Browse files Browse the repository at this point in the history
While I was debugging something I noticed I was working with the test
environment rather than the main development one. I realised I couldn't
switch to tailing the logs of the test environment, and it was because
the optional parameter wasn't being passed to the command.

This change fixes that, by adding the optional parameter to the command
definition.
  • Loading branch information
pablinos authored Jan 5, 2021
1 parent 58d0ddf commit f7d0f5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/env/lib/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module.exports = function cli() {
withSpinner( env.clean )
);
yargs.command(
'logs',
'logs [environment]',
'displays PHP and Docker logs for given WordPress environment.',
( args ) => {
args.positional( 'environment', {
Expand Down

0 comments on commit f7d0f5d

Please sign in to comment.