Skip to content

Conversation

@peterbourgon
Copy link
Owner

This PR is a significant overhaul of how Parse matches flags to command-line args, env vars, and config file keys. The primary motivation was fixing #145 -- now you can define -v, --verbose and -V, --version and they will work as (generally) expected.

There are subtle changes in behavior that impact how environment variables, and .env config files, are parsed. Read the docs for details. The main change is that now, by default, only long names are used when matching flags to environment variables. This is technically a breaking change, but if this breaks your program, you were doing something wrong :)

@peterbourgon peterbourgon merged commit 2b13f7e into main Jul 21, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants