drush node-export-import --file=node_export
Unknown option: --file. See `drush help node-export-import` for available options. To suppress this error, add the option --strict=0.

I copied the examples exactly from drush help

What am I doing wrong or is this a bug?

I'm using drush 5.0-dev

Comments

danielb’s picture

Status: Active » Fixed

they randomly decided to change how drush options are specified

you have to do ----file
(notice the 4 hyphens)

however I've just committed a fix, so if you get the newer version (next snapshot to come out) you can do it the normal way

Barnettech’s picture

Thanks!

BenVercammen’s picture

The 4 hyphens seem to get accepted (3 or 5 don't), but nonetheless it looks like the options are just being ignored? I just started using this, have a minimal Drupal site with 2 content types, "job" and "page". If I try
drush node-export ----type=job
I get the same result (print of all nodes to std out) as if I'd do
drush node-export
or even
drush node-export ----type=page

The same goes for
drush node-export ----file=test.txt
No file is created, I just get all my nodes printed on screen...

Is it possible that these options are just being ignored? I'm currenlty using drush 5.4 on windows 7.

Edit: I've dug into the code, and the problem is that the options are now indexed as "--file" instead of just "file", hence the fact they are ignored.

New question; can I get the snapshot MSI somewhere? Or do I need to build it myself somehow?

Status: Fixed » Closed (fixed)

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