lonekorean / wordpress-export-to-markdown

Converts a WordPress export XML file into Markdown files.
MIT License
1.09k stars 222 forks source link

--prefix-date instructions is wrong, need to use --prefixdate instead. #20

Closed jaslloyd closed 4 years ago

jaslloyd commented 4 years ago

Hey,

I was using this again and noticed that the flags you pass in to change some of the default behaviours are wrong e.g if you run this from the readme: npx wordpress-export-to-markdown --post-folders=false --prefix-date=true

It doesn't output folders with the date attached, however, if you use --prefixdate it will work. (without the middle hyphen)

With --prefix-date: Wrote output\the-clean-coder-my-takeaways\index.md.

With --prefixDate: Wrote output\2019-04-13-the-clean-coder-my-takeaways\index.md

This is probably the same for every flag where there --name-other, I think it is due to the way you are using minimist.

Let me know if you need any help.

p.s There are references to some sort of wizard looking at the code this doesn't exist.

jaslloyd commented 4 years ago

Actually I just looked at this again, it seems like the published/released version is not up to date with the instructions so feel free to close this when you release another version.

lonekorean commented 4 years ago

I just released v2 yesterday, with the changes you are seeing. :) It is updated on npm. Please try getting latest version again (and make sure it goes to 2.0.0). Please let me know if you continue to see issues.

jaslloyd commented 4 years ago

Thank you @lonekorean, I nuked the npm cache and now I have it!