With the latest version of drush 5.x branch, running drush make with the following options produces this error.

drush make -d --yes --no-core --working-copy --contrib-destination=. ./site.make

Bootstrap to phase 0. [0 sec, 3.31 MB]                               [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.01 sec, 3.53 MB] [bootstrap]
Cache HIT cid: 5.0-dev-commandfiles-0-1005ec1c0930bcbf33df487e6e8b3b3e [0.01 sec, 3.55 MB]                          [debug]
Bootstrap to phase 0. [0.03 sec, 7.14 MB]                                                                       [bootstrap]
Bootstrap to phase 0. [0.03 sec, 8.73 MB]                                                                       [bootstrap]
Found command: make (commandfile=drush_make) [0.03 sec, 8.74 MB]                                                [bootstrap]
Unknown options: --no-core, --working-copy, --contrib-destination.  See `drush help make` for information on    [error]
usage. [0.04 sec, 8.83 MB]
Peak memory usage was 10.44 MB [0.04 sec, 8.75 MB]                                                                 [memory]

Comments

ezeedub’s picture

Project: Drush Make » Drush
Version: 6.x-3.x-dev »
Component: Code » Core Commands

I encountered this problem too (using drush_make 2.3).

While #1310130: Put drush make in drush core gets worked out, I think the only fix is to go back to using Drush 4.x.

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

make is now in drush5 (git master). please retry and see if this is fixed. should be.

moshe weitzman’s picture

FYI, you can suppress an unknown option error by sending --strict=0. I just enhanced that error message to state this.

thekevinday’s picture

I have this problem and --strict=0 does work.

However, I wrote the code for drush (against an older version, cannot remembe which but probably drush 4).
The command does exist and the argument that drush claims does not exist works when I pass --strict=0.

What is the new syntax for handling or defining -- commands?
I need to update my modules drush code.

greg.1.anderson’s picture

Version: » 8.x-6.x-dev
Status: Postponed (maintainer needs more info) » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.