Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
danielb CreditAttribution: danielb commentedthey 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
Comment #2
Barnettech CreditAttribution: Barnettech commentedThanks!
Comment #3
BenVercammen CreditAttribution: BenVercammen commentedThe 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?