Mercurial > libervia-backend
diff frontends/src/jp/cmd_pubsub.py @ 2416:e2cbd449c002
jp (pubsub/node/create): fixed --field option
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 04 Nov 2017 22:11:01 +0100 |
parents | 8b37a62336c3 |
children | 6908fe4c6eca |
line wrap: on
line diff
--- a/frontends/src/jp/cmd_pubsub.py Sat Nov 04 22:10:01 2017 +0100 +++ b/frontends/src/jp/cmd_pubsub.py Sat Nov 04 22:11:01 2017 +0100 @@ -88,7 +88,7 @@ def add_parser_options(self): self.parser.add_argument("-f", "--field", type=base.unicode_decoder, action='append', nargs=2, dest='fields', - default={}, metavar=(u"KEY", u"VALUE"), help=_(u"configuration field to set")) + default=[], metavar=(u"KEY", u"VALUE"), help=_(u"configuration field to set")) self.parser.add_argument("-F", "--full-prefix", action="store_true", help=_(u"don't prepend \"pubsub#\" prefix to field names")) def psNodeCreateCb(self, node_id):