drush-ops / drush

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.
https://www.drush.org
2.34k stars 1.08k forks source link

Supress output from "drush rsync" in quiet mode #164

Open DirkR opened 11 years ago

DirkR commented 11 years ago

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?

DirkR commented 11 years ago

Hmm, --quiet|-q is defined in drush_get_global_options(), thus it is supported but it's only contained in drush topic core-global-options.