andreascreten/wp-cli — Issue #71: Problems with wp option when the option has a `%`
Author: matiskay
Created: 2012-02-21 13:45:20+00:00
State: open

I followed scribu's tutorial in [wptuts](http://wp.tutsplus.com/tutorials/using-wp-cli-for-fun-and-profit/) and I wanted to use `wp option get permalink_structure` but I got the following error.

```
PHP Warning: sprintf(): Too few arguments in /Users/iskay/git/wp-cli/src/php/php-cli-tools/lib/cli/cli.php on line 55

Warning: sprintf(): Too few arguments in /Users/iskay/git/wp-cli/src/php/php-cli-tools/lib/cli/cli.php on line 55
```

The option value is

``` sh
wp eval "echo get_option('permalink_structure');"

/%year%/%monthnum%/%day%/%postname%/
```

If I change the value with something that doesn't contains `%` the command works.

``` php