changeset 2416:e2cbd449c002

jp (pubsub/node/create): fixed --field option
author Goffi <goffi@goffi.org>
date Sat, 04 Nov 2017 22:11:01 +0100
parents 59100136f07a
children 192ae573901a
files frontends/src/jp/cmd_pubsub.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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):