Git Product home page Git Product logo

Comments (5)

kdeldycke avatar kdeldycke commented on May 23, 2024 1

For the record, the default command and group imported from click_extra is no longer attached with all the defaults options. Nor it is coming with all bells and whistles. In fact command and group are now an alias to Cloup's. So click_extra is now a drop-in replacement without surprises.

If you need all the previous behaviour, use extra_command instead of command and extra_group instead of group.

This huge refactor has been pushed upstream and lots of polishing is still required. It will be part of the upcoming v3.0.0 release.

Nice side effect of the refactoring: it solves the duplicate option and confusing bug you reported initially since all options can now be used standalone too.

from click-extra.

kdeldycke avatar kdeldycke commented on May 23, 2024

Oh.

In my first iteration of click-extra I wanted all the bells and whistles to be automatically applied out of the box to any group/command structure. To reduce the work done by new users and show them off its advantages. That's why all the options pop-up by default in your examples.

It's only after a while I realized I can speed-up the adoption of click-extra by advertising it as a drop-in replacement for click, but with extras.

Of course the 2 approaches are now conflicting and you're getting confused. I guess the best course of action is to detach all these default options on group and command, and let the user adds them as they see fit.

What do you think?

from click-extra.

rasa avatar rasa commented on May 23, 2024

While I personally don't mind all the options being enabled by default, my guess is most users will want to enable them manually. Perhaps they're all off by default, but then have an @every_option or @all_options to easily pull in everything.

from click-extra.

kdeldycke avatar kdeldycke commented on May 23, 2024

And to try to make things easier to grasp, I've written a first draft of a tutorial at: https://kdeldycke.github.io/click-extra/tutorial.html

from click-extra.

github-actions avatar github-actions commented on May 23, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

from click-extra.

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.