When using the function pydantic_class_to_parser, the help function wraps everything in Field().
Desired Output
-C CHECK, --check CHECK
Check plan file or plan requirements and exit. Value (CHECK) is p/plan or r/require (case insensitive), for instance: -C plan or -C
P (type:str|NoneType default:None)
Broken Output
-C CHECK, --check CHECK
Field(annotation=Union[str, NoneType], required=False, default=None, description='Check plan file or plan requirements and exit.
Value (CHECK) is p/plan or r/require (case insensitive), for instance: -C plan or -C P', json_schema_extra={'cli': ['-C', '--
check']}, metadata=[_PydanticGeneralMetadata(pattern='^(?i:p|plan|r|require)')])
I'm pretty sure this is what is causing the issue.
Rolling back to 9.0.0 resolves the issue.
When using the function
pydantic_class_to_parser, the help function wraps everything inField().Desired Output
-C CHECK, --check CHECK Check plan file or plan requirements and exit. Value (CHECK) is p/plan or r/require (case insensitive), for instance: -C plan or -C P (type:str|NoneType default:None)Broken Output
-C CHECK, --check CHECK Field(annotation=Union[str, NoneType], required=False, default=None, description='Check plan file or plan requirements and exit. Value (CHECK) is p/plan or r/require (case insensitive), for instance: -C plan or -C P', json_schema_extra={'cli': ['-C', '-- check']}, metadata=[_PydanticGeneralMetadata(pattern='^(?i:p|plan|r|require)')])I'm pretty sure this is what is causing the issue.
Rolling back to
9.0.0resolves the issue.