[wp-trac] [WordPress Trac] #34801: Remove debug from default wp-cli.yml

WordPress Trac noreply at wordpress.org
Fri Nov 27 13:13:32 UTC 2015


#34801: Remove debug from default wp-cli.yml
------------------------------+-----------------------------
 Reporter:  rodrigosprimo     |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 Since version 0.21.0, WP-CLI is using the debug flag for more verbosity
 during its bootstrap process (see https://github.com/wp-cli/wp-
 cli/pull/2138) thus I suggest that this flag is removed from the wp-
 cli.yml file used for core development.

 After this change with this flag enabled every WP-CLI command outputs
 information that is useful only if you are debugging the execution of the
 tool. This includes the auto complete feature which makes it hard to use.
 For example, see the output below if I type `wp plugin de` and try to use
 auto complete:

 {{{
 $ wp plugin deDebug: Using default global config: /home/rodrigo/.wp-
 cli/config.yml (0.008s)
 Debug: Using project config: /home/rodrigo/devel/wordpress-develop/wp-
 cli.yml (0.008s)
 Debug: ABSPATH defined: /home/rodrigo/devel/wordpress-develop/src/
 (0.019s)
 Debug: Running command: cli completions (0.019s)
   wp plugin de
 deactivate   delete
 }}}

 When debug is disabled the output is:

 {{{
 $ wp plugin de
 deactivate   delete
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34801>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list