diff options
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1876f92..5edf071 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- `Flags()` method and package-level function to access the top-level FlagSet. +- `WithStdout(io.Writer)` option for configuring help/usage output. +- `WithStderr(io.Writer)` option for configuring error output. + +### Changed + +- `Registry` now owns its own FlagSet instead of using the global `flag.CommandLine`. +- `Execute` now parses flags internally. Callers no longer need to call `flag.Parse()`. +- `WithOutput(io.Writer)` now sets both stdout and stderr. +- Only help/usage output goes to stdout now. Error messages now go to stderr. + Previously, all output was going to stdout. +- Invoking the help flag now results in a successful exit code of 0 rather than + 1. + +### Fixed + +- Top-level `-h` flag now displays available subcommands instead of empty output. + ## [0.4.0] - 2025-12-27 ### Added |