iandunn / wp-cli-rename-db-prefix

A WP-CLI command to rename WordPress' database prefix
109 stars 18 forks source link

--no-prompt does not works as expected / documentation needs improvements #15

Closed jaysee closed 4 years ago

jaysee commented 5 years ago

hello,

thank for this essential plugin (why is it not a builtin?!?)

According to readme we should use --no-prompt to prevent any confirmation prompt, but this does not do anything

According to documentation wp help rename-db-prefix, we should :

OPTIONS

  <new_prefix>
    The new database prefix

  [--dry-run]
    Preview which data would be updated.
    default: false

  [--prompt]
    Ask for confirmation.
    default: true

  [--config-update]
    updates wp-config.php.
    default: true

but --prompt or --prompt=false / 0 / n, never does what it meant to do.

Note : --prompt is a builtin global feature of wp-cli that intend to prompt user for inputs, getting some more confusion on the usage of this plugin

iandunn commented 5 years ago

Possibly related: 54d100125b58ca14fbeb28c5647b1f1a820ec24a