You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/help.feature
+34Lines changed: 34 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,40 @@ Feature: Get help about WP-CLI commands
53
53
"""
54
54
And STDERR should be empty
55
55
56
+
Scenario: Hide Global parameters when requested
57
+
Given an empty directory
58
+
59
+
When I run `wp help`
60
+
Then STDOUT should contain:
61
+
"""
62
+
GLOBAL PARAMETERS
63
+
"""
64
+
65
+
And STDOUT should contain:
66
+
"""
67
+
--path
68
+
"""
69
+
70
+
And STDOUT should contain:
71
+
"""
72
+
Path to the WordPress files.
73
+
"""
74
+
75
+
When I run `WP_CLI_SUPPRESS_GLOBAL_PARAMS=true wp help`
76
+
Then STDOUT should not contain:
77
+
"""
78
+
GLOBAL PARAMETERS
79
+
"""
80
+
81
+
And STDOUT should not contain:
82
+
"""
83
+
--path
84
+
"""
85
+
And STDOUT should not contain:
86
+
"""
87
+
Path to the WordPress files.
88
+
"""
89
+
56
90
# Prior to WP 4.3 widgets & others used PHP 4 style constructors and prior to WP 3.9 wpdb used the mysql extension which can all lead (depending on PHP version) to PHP Deprecated notices.
0 commit comments