wp-cli / php-cli-tools

A collection of tools to help with PHP command line utilities
MIT License
672 stars 118 forks source link

The returned value of `--format=count` needs line break? #119

Closed miya0001 closed 7 years ago

miya0001 commented 7 years ago

There is no line break. Is this problem which should be fixed? Are there any backward compatibility issues?

[miya@localhost wp-cli (master *)]$ wp user list --format=count
1[miya@localhost wp-cli (master *)]$ 

For example, the result of the jq has a line break.

$ wp user list --format=json | jq length
1
danielbachhuber commented 7 years ago

Is this problem which should be fixed?

I don't think so, no. Not having a line break makes it easier to use the output in some other system.