Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Unknown options" with drush dl (version 9.0-alpha1) #2895

Closed
DicksB opened this issue Aug 24, 2017 · 5 comments
Closed

"Unknown options" with drush dl (version 9.0-alpha1) #2895

DicksB opened this issue Aug 24, 2017 · 5 comments

Comments

@DicksB
Copy link

DicksB commented Aug 24, 2017

I have a composer script running the following command:

/Users/wrd/Documents/Drupal/Repositories/Drupal/drupal84/vendor/bin/drush dl drupal-8 --root=/Users/wrd/Documents/Drupal/Repositories/Drupal/drupal84/tmp --destination=/Users/wrd/Documents/Drupal/Repositories/Drupal/drupal84/tmp --drupal-project-rename=drupal-8 --quiet --yes

This results in the following error:

[error]  Unknown options: --destination, --drupal-project-rename.  See `drush help pm-download` for available options. To suppress this error, add the option --strict=0. 

Running the help command, I get:

/Users/wrd/Documents/Drupal/Repositories/Drupal/8.x/vendor/bin/drush --help pm-download

Options:

Aliases: dl

Not sure if I've somehow managed to screw up installing drush (composer require drush/drush:9.*), or if these options are just not yet implemented in drush 9, or what. I have tried dev-master and beta1 as well as alpha1, with the same results. I guess I'm not sure if this is an issue, or if I've just done something wrong...any suggestions appreciated.

@weitzman
Copy link
Member

dl has been removed from Drush9. Use Composer instead to build your site.
There is a deprecation message if you run drush dl. But you never saw it because you used no-longer-valid options and then you used help. Neither of those paths show you what you needed to see. I'll think about a fix.

@greg-1-anderson
Copy link
Member

It would be nice if we had a mechanism to customize / enhance error messages for commands. e.g. for drush dl drupal "Drush 9 doesn't do that any more: see ...".

@DicksB
Copy link
Author

DicksB commented Aug 28, 2017

I actually am using Composer to build the site. I'm using Drush inside a post-update-cmd script to download the Drupal distribution and copy the scaffolding files if the core version has changed. I suppose I can probably use curl for the purpose instead.

@greg-1-anderson
Copy link
Member

See https://github.com/drupal-composer/drupal-project and https://github.com/drupal-composer/drupal-scaffold.

@DicksB
Copy link
Author

DicksB commented Aug 28, 2017

That's actually where I copied the drush command from. Our needs don't quite match their setup, but it served as a very useful guide to getting our 8.3 stuff working.

I don't think this turns out to be a significant problem. Looks like I can just check the core version, use that to build a valid URL, and grab the download with curl. Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants