I have a drush command for installing a Drupal website with configuration in it. I do not want to type this command with all the configuration all the time because it is long so I would like to encapsulate the command as alias but I still want to pass additional arguments to the original command.
Specifically I need to pass at least the db url since that will always be different.
I was thinking something like this:
drush install-mysite --db-url="..."
So basically any argument that is provided to my alias would override the defined argument defined in my alias.
From what I have read this could be done with drush aliases but I am not sure about the syntax and the arguments themselves. Another way is to create a new drush function but I think alias is simpler and I don't need any additional functionality.
This is for Drupal 8 so Drush 7 but I think it is not that relevant.