Skip to content

Commit 1445f6d

Browse files
committed
Deprecate Flag type optional
1 parent 3536a6a commit 1445f6d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/boutiques_schema_pydantic/v_styx_1/descriptor.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ class FlagInput(BaseInput):
238238
"Examples: -v, --force.",
239239
)
240240

241+
optional: bool = pydantic.Field(
242+
description="Optional has no meaning for Flag type inputs",
243+
default=False,
244+
deprecated=True,
245+
)
246+
241247

242248
class SubCommand(pydantic.BaseModel):
243249
"""Sub-command attriblutes shared between base descriptor and sub-commands."""

0 commit comments

Comments
 (0)