Skip to content

Commit e5f0efd

Browse files
committed
rename UpdateFormatCmd path arg to output
1 parent 01c0fbd commit e5f0efd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bioimageio/core/cli.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -231,11 +231,14 @@ def _get_stat(
231231
class UpdateFormatCmd(CmdBase, WithSource):
232232
"""Update the metadata format"""
233233

234-
path: Optional[Path] = Field(None, alias="output-path")
235-
"""save updated RDF to this path"""
234+
output: Optional[Path] = None
235+
"""Save updated bioimageio.yaml to this file.
236+
237+
(Always renders updated bioimageio.yaml to terminal.)
238+
"""
236239

237240
def run(self):
238-
updated = update_format(self.descr, output_path=self.path)
241+
updated = update_format(self.descr, output_path=self.output)
239242
updated_stream = StringIO()
240243
write_yaml(updated, updated_stream)
241244
updated_md = f"```yaml\n{updated_stream.getvalue()}\n```"

0 commit comments

Comments
 (0)