mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 08:56:15 +00:00
Added --disable-readline CLI argument
This commit is contained in:
@ -71,7 +71,8 @@ class CommandReader extends Thread{
|
||||
|
||||
public function run(){
|
||||
$this->buffer = new \Threaded;
|
||||
if(extension_loaded("readline") and $this->stream === "php://stdin"){
|
||||
$opts = getopt("", ["disable-readline"]);
|
||||
if(extension_loaded("readline") and $this->stream === "php://stdin" and !isset($opts["disable-readline"])){
|
||||
$this->readline = true;
|
||||
}else{
|
||||
$this->readline = false;
|
||||
|
Reference in New Issue
Block a user