-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Labels
Description
Bug Report
- Yes, I reviewed the contribution guidelines.
- Yes, more specifically, I reviewed the guidelines on how to write clear bug reports.
Describe the current, buggy behavior
curl -Ns http://loripsum.net/api/5 | wp post generate --post_content --count=10
Gives me:
Error: The parameter
post_content reads from STDIN.
Curl works fine:
Describe how other contributors can replicate this bug
- Install wordpress
- Run command
// You can also use code snippets if needed.
Describe what you would expect as the correct outcome
Generate posts
Let us know what environment you are running this on
OS: Linux 4.19.84-microsoft-standard #1 SMP Wed Nov 13 11:44:37 UTC 2019 x86_64
Shell: /usr/bin/zsh
PHP binary: /usr/bin/php7.3
PHP version: 7.3.15-1+ubuntu18.04.1+deb.sury.org+1
php.ini used: /etc/php/7.3/cli/php.ini
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP_CLI phar path: /home/lalo/www/bedrock
WP-CLI packages dir: /home/lalo/.wp-cli/packages/
WP-CLI global config:
WP-CLI project config: /home/lalo/www/bedrock/wp-cli.yml
WP-CLI version: 2.4.0
Provide a possible solution
If you happen to have a suggestion on how to fix this bug, please tell us in here.
Just leave this section out if you don't know how to fix it.
Provide additional context/Screenshots
this works:
echo "hello world" | wp post generate --post_content --count=10
This works:
Luc45 and sabmile