classes/CLI.php
public static function commands(){
       $results = [];
       foreach(static::$commands as $name => $cmd){
          $results[] = [
            'name'        => $name,
            'params'      => preg_replace('/:(\w+)/','[$1]',implode(' ',$cmd[0])),
            'description' => $cmd[2],
          ];
       }
       return $results;
    }
public static function commands(){
       $results = [];
       foreach(static::$commands as $name => $cmd){
          $results[] = [
            'name'        => $name,
            'params'      => preg_replace('/:(\w+)/','[$1]',implode(' ',$cmd[0])),
            'description' => $cmd[2],
          ];
       }
       return $results;
    }
public static function commands ( ) { $ results = [ ] ; foreach ( static :: $ commands as $ name => $ cmd ) { $ results [ ] = [ 'name' => $ name , 'params' => preg_replace ( '/:(\w+)/' , '[$1]' , implode ( ' ' , $ cmd [ 0 ] ) ) , 'description' => $ cmd [ 2 ] , ] ; } return $ results ; }
Returns an explanation for the supported commands

@method commands

@return array   The commands and their description.
Returns an explanation for the supported commands