The current implementation hook_drush_command() has a few syntax issues in it that generate invalid argument errors in PHP. To reproduce, run "drush help solr-vget". Note the errors, and the empty description for the "--format" flag.

$ drush help solr-variable-get

Invalid argument supplied for foreach() bootstrap.inc:1535                                                                     [warning]
strtr(): The second argument is not an array bootstrap.inc:1552                                                                [warning]
Invalid argument supplied for foreach() bootstrap.inc:1535                                                                     [warning]
strtr(): The second argument is not an array bootstrap.inc:1552                                                                [warning]
Invalid argument supplied for foreach() bootstrap.inc:1535                                                                     [warning]
strtr(): The second argument is not an array bootstrap.inc:1552                                                                [warning]
Invalid argument supplied for foreach() bootstrap.inc:1535                                                                     [warning]
strtr(): The second argument is not an array bootstrap.inc:1552                                                                [warning]
Get a list of Apache Solr environment variable names and values.

Examples:
 drush solr-vget                           List all variables and values.                   
 drush solr-vget user                      List all variables containing the string "user". 
...

Patch to fix attached!

CommentFileSizeAuthor
#2 drush2.patch2.15 KBmundanity
drush.patch2.1 KBmundanity

Comments

Status: Needs review » Needs work

The last submitted patch, drush.patch, failed testing.

mundanity’s picture

Status: Needs work » Needs review
StatusFileSize
new2.15 KB

Why you no like SVN.

nick_vh’s picture

hmm, weird - could this be an issue between drush 4 and 5?

nick_vh’s picture

Version: 7.x-1.x-dev » 6.x-3.x-dev
Status: Needs review » Patch (to be ported)

committed to D7

nick_vh’s picture

Status: Patch (to be ported) » Fixed

applied cleanly, thanks!

Status: Fixed » Closed (fixed)

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