Comments (3)
I have a big patch in development right now fixing usage. I'll throw this on the heap of things I'm doing.
I assert that the behavior you want here is for an explicit annotation of bool
to behave identically to a default value of True
or False
. (Which means internally we replace it with BooleanOptionConverter
.)
p.s. this is a bug, a quick gander at the code suggests it's supposed to already work that way.
from appeal.
p.p.s. one rarely uses type hints with Appeal, beyond typing.Annotated
or perhaps typing.no_type_check()
. However Appeal does make heavy use of annotations.
from appeal.
Ah, yes.
from appeal.
Related Issues (13)
- Suppress ValueError in "convert" phase, convert to usage exception HOT 1
- Typing loguru logger - AttributeError: 'NoneType' object has no attribute 'get_signature' HOT 2
- "--" can not be passed as argument
- Wrong command use response is too unspecific
- appeal steals all stdout (bug?)
- Bug: README mentions missing document for how to write documentation HOT 1
- Consider changing when optional options become available, and how they're presented, in usage HOT 3
- Passing global options to commands HOT 10
- Traceback is not useful when a command is missing arguments HOT 5
- Improve the error message generated when a required parameter appears after a converter with a VAR_POSITIONAL parameter HOT 3
- Appeal uses equals-signs-in-f-strings, but that's a 3.8 feature and Appeal supports 3.6+ HOT 2
- Figure out how to communicate the concept of "argument groups" better in usage HOT 2
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 appeal.