I just upgraded from 4.5 to 5.1 and and now drush can not find any of it's own internal commands. I get the following error:

Unknown option: --package-handler. See `drush help core-status` for available options. To suppress this error, add the option --strict=0.

when I add the --strict=0 at the end of a command - it works. Any thoughts as to what is wrong with the upgrade?

Comments

jonhattan’s picture

No idea. How did you upgrade? What's the output of drush status?

austin_drupal’s picture

I used
drush self-update

and the results of drush status is

# drush status
Unknown option: --package-handler.  See `drush help core-status` for available options. To suppress this error, add the option --strict=0.                 [error]

# drush status --strict=0
 Drupal version         :  7.14                                                                    
 Site URI               :  http://default                                                          
 Default theme          :  garland                                                                 
 Administration theme   :  garland                                                                 
 PHP configuration      :  /etc/php5/cli/php.ini /root/.drush/drush.ini                            
 Drush version          :  5.1                                                                     
 Drush configuration    :                                                                          
 Drush alias files      :  /root/.drush/omega.aliases.drushrc.php /root/.drush/aliases.drushrc.php 
 Drupal root            :  /var/www/sprint/rxwiki                                                  
 Site path              :  sites/default                                                           
 File directory path    :  sites/default/files                   
jonhattan’s picture

It seems to me you have package-handler option defined in an alias file. In drush 5 it must be defined as command-specific options. See examples/example.aliases.drushrc.php (same for a config file).

jonhattan’s picture

Status: Active » Postponed (maintainer needs more info)
moshe weitzman’s picture

Status: Postponed (maintainer needs more info) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.