Skip to content

Better Usage Output#12

Merged
bbengfort merged 1 commit intomainfrom
ui
Mar 23, 2026
Merged

Better Usage Output#12
bbengfort merged 1 commit intomainfrom
ui

Conversation

@bbengfort
Copy link
Copy Markdown
Contributor

@bbengfort bbengfort commented Mar 21, 2026

Scope of changes

Improves usage output to use env definition instead of prefixed key if it is set.

Type of change

  • new feature
  • bug fix
  • documentation
  • testing
  • technical debt
  • other (describe)

Author checklist

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have added new test fixtures as needed to support added tests

Note

Low Risk
Low risk: changes are limited to how usage renders keys in templates plus updating fixtures/docs; it does not affect env loading or validation behavior.

Overview
Improves usage.Usagef output so displayed variable names prefer the explicit env/envconfig override (env.Info.Alt) instead of the computed prefixed key, making help text match the actual external env var users set.

Updates usage tests/fixtures to cover an overridden required DATABASE_URL field and adjusts README docs with an example of using Confire’s InvalidConfig/Join/Wrap error helpers when implementing custom Validator logic.

Written by Cursor Bugbot for commit 22991b9. Configure here.

@bbengfort bbengfort merged commit 9793d75 into main Mar 23, 2026
5 checks passed
@bbengfort bbengfort deleted the ui branch March 23, 2026 14:47
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.

1 participant