Comments (5)
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.
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.
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.
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.
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)
- Broken links HOT 1
- Broken links HOT 1
- Broken links HOT 1
- Broken links HOT 1
- Broken links HOT 1
- Broken links HOT 1
- Remove runtime dependencies on sphinx and so on HOT 1
- Broken links HOT 1
- Broken links HOT 1
- Broken links HOT 1
- Broken links HOT 1
- Broken links HOT 1
- Broken links HOT 1
- Broken links
- Broken links
- Yaml config not working HOT 2
- double @config_option on help HOT 3
- Broken links
- Broken links
- Broken links
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from click-extra.