Skip to content

Add usage to Command.to_info_dict output#3276

Closed
Hassad674 wants to merge 1 commit intopallets:mainfrom
Hassad674:feat/info-dict-usage
Closed

Add usage to Command.to_info_dict output#3276
Hassad674 wants to merge 1 commit intopallets:mainfrom
Hassad674:feat/info-dict-usage

Conversation

@Hassad674
Copy link

Fixes #2992

Command.to_info_dict() now includes a 'usage' key containing the output of get_usage(ctx). This lets consumers of to_info_dict() access the usage string directly instead of having to reconstruct it by iterating sub-contexts.

Updated existing tests to include the new key in expected output.

@Rowlando13 Rowlando13 closed this Mar 20, 2026
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.

Add output of get_usage() to get_info_dict()

2 participants