Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / src / Commands / sql / SqlCommands.php
index d7ee5743eb80ee4b5f25aa2c16df3d03d57d44e8..861a4411717e9d11dac7babf982f8c8d9861863a 100644 (file)
@@ -123,17 +123,17 @@ class SqlCommands extends DrushCommands
      * Open a SQL command-line interface using Drupal's credentials.
      *
      * @command sql:cli
-     * @option extra Add custom options to the connect string (e.g. --extra=--skip-column-names)
+     * @option extra Add custom options to the connect string
      * @optionset_sql
      * @aliases sqlc,sql-cli
      * @usage drush sql:cli
      *   Open a SQL command-line interface using Drupal's credentials.
-     * @usage drush sql:cli --extra=-A
+     * @usage drush sql:cli --extra=--progress-reports
      *   Open a SQL CLI and skip reading table information.
      * @remote-tty
      * @bootstrap max configuration
      */
-    public function cli($options = [])
+    public function cli($options = ['extra' => self::REQ])
     {
         $sql = SqlBase::create($options);
         if (drush_shell_proc_open($sql->connect())) {
@@ -201,7 +201,7 @@ class SqlCommands extends DrushCommands
      * @option ordered-dump Order by primary key and add line breaks for efficient diffs. Slows down the dump. Mysql only.
      * @option gzip Compress the dump using the gzip program which must be in your $PATH.
      * @option extra Add custom arguments/options when connecting to database (used internally to list tables).
-     * @option extra-dump Add custom arguments/options to the dumping the database (e.g. mysqldump command).
+     * @option extra-dump Add custom arguments/options to the dumping of the database (e.g. mysqldump command).
      * @usage drush sql:dump --result-file=../18.sql
      *   Save SQL dump to the directory above Drupal root.
      * @usage drush sql:dump --skip-tables-key=common