aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
blob: f25a89237d9dd017136aaf671ed22addf69d4ead (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- `WithOutput(io.Writer)` option for configuring registry output writer.
- `WithErrorHandling(flag.ErrorHandling)` option for configuring flag parse error handling.

### Changed

- `NewRegistry` now accepts functional options instead of relying on setter methods.

### Fixed

- Subcommand `-h` flag now displays the command's Usage() string instead of empty output.

### Removed

- `Registry.SetOutput` method - use `WithOutput` option with `NewRegistry` instead.
- Package-level `SetOutput` function - create a custom registry with `NewRegistry(WithOutput(w))`.

## [0.3.0] - 2025-12-27

### Added

- `ManHelpCommand(prefix)` - a help command that opens man pages instead of
  printing inline help. Uses the prefix to construct page names (e.g.,
  `prefix` for the main page, `prefix-subcommand` for subcommand pages).

## [0.2.0] - 2025-10-13

### Changed

- When no subcommands are specified, usage information and help text will be
  shown with an exit code of 1.

## [0.1.0] - 2025-10-13

- Initial Release