Skip to content

Commit 339d216

Browse files
committed
set default exclude_defaults=True for update-format
1 parent 25ff832 commit 339d216

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bioimageio/core/cli.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,13 @@ def run(self):
355355
class UpdateFormatCmd(UpdateCmdBase):
356356
"""Update the metadata format to the latest format version."""
357357

358+
exclude_defaults: bool = Field(True, alias="exclude-defaults")
359+
"""Exclude fields that have the default value (even if set explicitly).
360+
361+
Note:
362+
The update process sets most unset fields explicitly with their default value.
363+
"""
364+
358365
perform_io_checks: bool = Field(
359366
settings.perform_io_checks, alias="perform-io-checks"
360367
)

0 commit comments

Comments
 (0)