Comments (2)
Re not-so-smooth migration to the new name mapping policy: very good point, I've added a more informative error there with a hint to the possible solution.
I think part of the problem was that I first looked at the Github release (https://github.com/neithere/argh/releases/tag/v0.30.0). That led me to #199
If I had looked at the changes file it would've been much clearer. I thought maybe there was another issue preventing the smooth migration from working.
from argh.
Hi @mfussenegger, thank you for the detailed report!
Confirming the regression. The fix is ready, to be released as 0.30.1 today or later this week.
Re not-so-smooth migration to the new name mapping policy: very good point, I've added a more informative error there with a hint to the possible solution.
FYI, I was indeed planning a smooth transition but the path with deprecation warnings would mean the necessity to update absolutely every app with an explicit policy and then deprecate the legacy policy. It would be far longer and require much more intervention from app developers. This way they have three options: a) stay at v0.29, b) upgrade but stay with the legacy policy, c) upgrade and add that asterisk.
Anyway, thanks for the valuable feedback, I was a bit nervous about this one when preparing the release 😄
from argh.
Related Issues (20)
- Expose version information at runtime
- Revamp unit tests
- Remove previously deprecated stuff HOT 1
- Add type annotations to existing code
- Test coverage reported as <100% when argcomplete is installed HOT 5
- Keyword-Only Arguments as Options
- Add support for Python 3.12
- Refactor assembling module
- Type hints: basic usage to infer argument types HOT 2
- 0.30.X is breaking console scripts by moving options to positional arguments HOT 5
- Issue with underscores in positional arguments since 0.30.0 HOT 1
- Using argh.argh(args=... , default=...) causes double nesting of passed arguments HOT 1
- TypingHintArgSpecGuesser breaks on type alias List HOT 11
- Option to disable replacement of "_" with "-" in named cli arguments HOT 3
- Trim trailing `_` from argument names
- Setting the argument name with `dest` is ignored HOT 2
- cmake deprecation warning with cmake<3.5 HOT 1
- Test failures with Python 3.13.0b2 HOT 3
- Add ability to display long options in usage message
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 argh.