Skip to content

fix: pass --help through to container commands instead of intercepting#54

Merged
markhedleyjones merged 1 commit intomainfrom
fix/help-flag-passthrough
Mar 26, 2026
Merged

fix: pass --help through to container commands instead of intercepting#54
markhedleyjones merged 1 commit intomainfrom
fix/help-flag-passthrough

Conversation

@markhedleyjones
Copy link
Copy Markdown
Owner

Click's built-in --help handling intercepted the flag before it could be passed to the container command. Setting help_option_names=[] on the run command disables Click's --help so it passes through to the container. Users can still see cm's help via cm --help.

Click's built-in --help handling intercepted the flag before it could
be passed to the container command. Setting help_option_names=[] on the
run command disables Click's --help so it passes through to the
container. Users can still see cm's help via cm --help.
@markhedleyjones markhedleyjones merged commit 8dbcd04 into main Mar 26, 2026
8 checks passed
@markhedleyjones markhedleyjones deleted the fix/help-flag-passthrough branch March 26, 2026 09:14
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