Skip to content

feat(cli): add command name to argument model docstring

Muniza requested to merge mnz/cmd into main

Example:

class ArticletopicsPipelineRun(BaseModel):
+   """
+   Arguments for the `articletopics.pipeline.run` command.
+   """

    class Config:
        extra = Extra.forbid

    mediawiki_snapshot: str = Field(..., title="Mediawiki Snapshot")
    wikidata_snapshot: str = Field(..., title="Wikidata Snapshot")
    model_url: str = Field(..., title="Model Url")
    output: Path = Field(..., title="Output")
    max_files_per_wiki: int = Field(..., title="Max Files Per Wiki")
    wikis: list[str] | None = Field(default=None, title="Wikis")
Edited by Muniza

Merge request reports