Skip to content

Commit 9c85840

Browse files
committed
Add uppercase first word warning.
1 parent 9091c32 commit 9c85840

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

features/plugin-list.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Feature: List WordPress plugins
5858
When I try `wp plugin list --skip-update-check --force-check`
5959
Then STDERR should contain:
6060
"""
61-
Error: plugin updates cannot be both force-checked and skipped. Choose one.
61+
Error: Plugin updates cannot be both force-checked and skipped. Choose one.
6262
"""
6363
And STDOUT should be empty
6464
And the return code should be 1

features/theme-list.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Feature: List WordPress themes
5656
When I try `wp theme list --skip-update-check --force-check`
5757
Then STDERR should contain:
5858
"""
59-
Error: theme updates cannot be both force-checked and skipped. Choose one.
59+
Error: Theme updates cannot be both force-checked and skipped. Choose one.
6060
"""
6161
And STDOUT should be empty
6262
And the return code should be 1

src/WP_CLI/CommandWithUpgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ protected function _list( $_, $assoc_args ) {
534534

535535
// If `--force-check` and `--skip-update-check` flags are both present, abort.
536536
if ( true === (bool) Utils\get_flag_value( $assoc_args, 'force-check', false ) && true === (bool) Utils\get_flag_value( $assoc_args, 'skip-update-check', false ) ) {
537-
WP_CLI::error( "{$this->item_type} updates cannot be both force-checked and skipped. Choose one." );
537+
WP_CLI::error( ucfirst( "{$this->item_type} updates cannot be both force-checked and skipped. Choose one." ) );
538538
}
539539

540540
// If `--force-check` flag is present, delete the upgrade transient.

0 commit comments

Comments
 (0)