Drush has global option -y
(or --yes
) which allow you not to type y
on every promt during given command execution. (There is also -n
or --no
option to which following applies as well.)
This works perfectly when you run something like:
drush en i18n -y
The propblem arises, for example, when you trying to run rsync
in that manner:
drush rsync @staging:sites/all/themes @production:sites/all/themes -y
Drush just don’t get the -y
option, and prompts you for a confirmation.
What is this and how to make use of -y
option?
Sponsored by SupremePR