Skip to content

Conversation

@seipan
Copy link
Member

@seipan seipan commented Aug 19, 2025

What type of PR is this?

  • feature

What this PR does / why we need it:

Before functions weren't being executed when users ran --help or -h flags, only when using help commands. This created inconsistent behavior and prevented applications from running setup logic (like language configuration)
before displaying help text.

Added EnableBeforeForHelp field to make Before function execution configurable for help flags. When set to true, Before functions run for both help commands and help flags. Defaults to false to maintain backward
compatibility.

Which issue(s) this PR fixes:

#2174

Special notes for your reviewer:

non

Testing

Test case for feature.

Release Notes

 Feature: Add EnableBeforeForHelp option to execute Before functions when displaying help via --help/-h flags

Signed-off-by: seipan <yamasakipann0218@gmail.com>
@seipan seipan requested a review from a team as a code owner August 19, 2025 14:06
seipan added 2 commits August 19, 2025 23:13
Signed-off-by: seipan <yamasakipann0218@gmail.com>
Signed-off-by: seipan <yamasakipann0218@gmail.com>
@seipan seipan changed the title feat: run Before for help if EnableBeforeForHelp Add EnableBeforeForHelp option to execute Before functions with help flags Aug 19, 2025
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.

2 participants