dimadin / commonWP

Offload open source static assets to the free, public CDN.
35 stars 7 forks source link

Update paths list to match example docs. #4

Open matt-h opened 5 years ago

matt-h commented 5 years ago

With the current code using the commands in the example the last parameter (active, inactive, queue) had no effect using WP-CLI 2.1.0.

This updates the arg checked so that these options work.

 *     # List paths that can be rewritten.
 *     $ wp commonwp paths list active
 *
 *     # List paths that are not rewritten.
 *     $ wp commonwp paths list inactive
 *
 *     # List paths that should be processed.
 *     $ wp commonwp paths list queue