When you type drush help views-data-export, it tells you clearly that "--arguments" is one of the options you can pass it.

But I was getting this result:

drush views-data-export my_view my_vde_display output_file.csv --arguments=234,4 

Unknown option: --arguments.  See `drush help views-data-export` for available options. 

Comments

dan3h’s picture

StatusFileSize
new1.85 KB

The problem was incorrectly formatted options in the implementation of hook_drush_command().

Patch attached.

dan3h’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 1: unknown_option_arguments-2442931-1.patch, failed testing.

killes@www.drop.org’s picture

this patch works for me.

I think it needs to be re-rolled against the actual repo to apply on testing.

jackbravo’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new1.67 KB

The patch works for me. I just did a re-roll.

Can I marked as RTBC then?

jackbravo’s picture

Status: Reviewed & tested by the community » Needs review

I'm not sure if the test-bot works with RTBC so marking as needs-revew instead.

jackbravo’s picture

Status: Needs review » Reviewed & tested by the community

Since the tests passed and this has been reviewed before (#4) and works for me too, I'm marking as RTBC. The patch is pretty simple. Cheers! =).

steven jones’s picture

Issue tags: +ComputerMinds
steven jones’s picture

Status: Reviewed & tested by the community » Fixed

Thanks very much indeed everyone.

  • Steven Jones committed b661ef0 on 7.x-3.x authored by dan3h
    Issue #2442931 by jackbravo, dan3h: Fixed Drush nknown option: arguments
    

Status: Fixed » Closed (fixed)

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