# HG changeset patch # User Goffi # Date 1718887615 -7200 # Node ID 89a0999884ac6f39a29065bb24c111348148eb2d # Parent a5d27f69eedb23303032c5fe2798bbef820f34b6 cli (list/set): add "--comments" argument. diff -r a5d27f69eedb -r 89a0999884ac libervia/cli/cmd_list.py --- a/libervia/cli/cmd_list.py Thu Jun 20 14:36:09 2024 +0200 +++ b/libervia/cli/cmd_list.py Thu Jun 20 14:46:55 2024 +0200 @@ -101,6 +101,13 @@ help=_("update existing item instead of replacing it (DEFAULT: auto)"), ) self.parser.add_argument( + "-C", + "--comments", + choices=("auto", "true", "false"), + default="auto", + help=_("create comments node (DEFAULT: auto)"), + ) + self.parser.add_argument( "item", nargs="?", default="", @@ -121,6 +128,8 @@ values.setdefault(field_data[0], []).extend(field_data[1:]) extra = {"update": update} + if self.args.comments != "auto": + extra["comments"] = bool(self.args.comments) try: item_id = await self.host.bridge.list_set(