Drush is a command-line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those who spend their working hours hacking away at the command prompt.
Running drush sql-sync with options -q and -y then no output is printed to stdout:
$ drush -y sql-sync -q @w2e.live @w2e.l
$
But running drush rsync outputs the confirmation prompt and it's auto-answer "y":
$ drush -y rsync -q @w2e.live @w2e.l
You will destroy data from /var/www/website/ and replace with data from host:/var/www/website/
Do you really want to continue? (y/n): y
$
drush rsyncshould be as quiet as drush sql-sync when using the option -q.
Ooops, now I see that the option -q is (no longer) defined. It is not listed in the drush help output. Why does it work for sql-sync?
Running
drush sql-sync
with options-q
and-y
then no output is printed to stdout:But running
drush rsync
outputs the confirmation prompt and it's auto-answer "y":drush rsync
should be as quiet asdrush sql-sync
when using the option-q
.Ooops, now I see that the option
-q
is (no longer) defined. It is not listed in thedrush help
output. Why does it work for sql-sync?