}
private function check_root() {
- if ( $this->config['allow_root'] )
+ if ( $this->config['allow-root'] )
return; # they're aware of the risks!
if ( !function_exists( 'posix_geteuid') )
return; # posix functions not available
"your server, making it quite DANGEROUS.\n" .
"\n" .
"If you'd like to continue as root, please run this again, adding this " .
- "flag: --allow_root\n" .
+ "flag: --allow-root\n" .
"\n" .
"If you'd like to run it as the user that this site is under, you can " .
"run the following to become the respective user:\n" .
'default' => array(),
),
- 'allow_root' => array(
- 'runtime' => '=<allow_root>',
+ 'allow-root' => array(
+ 'runtime' => '=<allow-root>',
'desc' => '(NOT RECCOMENDED) Allow wp-cli to run as root. This poses a security risk, so you probably do not want to do this.',
),