Git Product home page Git Product logo

Comments (8)

chrislambe avatar chrislambe commented on June 8, 2024 6

@Khaledgarbaya Any reason not to just embrace the yargs convention? All you have to do is change it from 'no-update' to 'update' and flip the default from false to true.

from contentful-cli.

SteveAlexander avatar SteveAlexander commented on June 8, 2024

I think I know why... it seems this option is not implemented in https://github.com/contentful/contentful-import/blob/master/lib/parseOptions.js

from contentful-cli.

chrislambe avatar chrislambe commented on June 8, 2024

Confirmed that this is still a bug in 0.16.0 on macOS. It looks like the yargs argument is named no-update (see: https://github.com/contentful/contentful-cli/blob/master/lib/cmds/space_cmds/import.js#L53). By convention yargs uses the no- prefix as a way to flip a boolean flag. So it's interpreting --no-update as --update false (or whatever the flag value for false is) and bombing out because there is no update option. 🙄

If you change .option('no-update', { to .option('update', { it stops bombing out. However it still appears to update (assets, at least).

from contentful-cli.

axe312ger avatar axe312ger commented on June 8, 2024

@chrislambe thank you for these helpful details. We will have a look!

from contentful-cli.

Khaledgarbaya avatar Khaledgarbaya commented on June 8, 2024

we can maybe change it to prevent-update

from contentful-cli.

dnlmzw avatar dnlmzw commented on June 8, 2024

Also experincing trouble with this.

Also, I want to use it to prevent assets from updating, so even with the "fix" suggested by @chrislambe it's no use to me.

from contentful-cli.

jroehl avatar jroehl commented on June 8, 2024

Please follow on #118.

from contentful-cli.

phoebeschmidt avatar phoebeschmidt commented on June 8, 2024

🎉 This issue has been resolved in version 0.33.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

from contentful-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.