Skip to content

Commit 6e69e57

Browse files
committed
fix: prevent click parameter mismatch by setting expose_value=False for the --man option
1 parent ab09c73 commit 6e69e57

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to apcore-cli (Python SDK) will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
9+
## [0.4.1] - 2026-03-30
10+
11+
### Fixed
12+
- prevent click parameter mismatch by setting expose_value=False for the --man option
13+
814
## [0.4.0] - 2026-03-29
915

1016
### Added

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "apcore-cli"
7-
version = "0.4.0"
7+
version = "0.4.1"
88
description = "Terminal adapter for apcore — execute AI-Perceivable modules from the command line"
99
readme = "README.md"
1010
license = "Apache-2.0"

src/apcore_cli/shell.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,13 +501,17 @@ def configure_man_help(
501501
Usage:
502502
configure_man_help(cli, "reach", "0.2.0", "ReachForge", "https://reachforge.dev/docs")
503503
"""
504-
# Add --man as a hidden Click option
504+
# Add --man as a hidden Click option.
505+
# expose_value=False: Click must not pass this to the group callback,
506+
# which has no 'man' parameter. The value is read directly from sys.argv
507+
# via the pre-parse below.
505508
cli.params.append(
506509
click.Option(
507510
["--man"],
508511
is_flag=True,
509512
default=False,
510513
hidden=True,
514+
expose_value=False,
511515
help="Output man page in roff format (use with --help).",
512516
)
513517
)

0 commit comments

Comments
 (0)