Opened 9 years ago
Closed 9 years ago
#34801 closed enhancement (fixed)
Remove debug from default wp-cli.yml
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description
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
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
For the next person to come across this ticket, you can also disable a flag by prefixing with
--no-
(e.g.--no-debug
)