diff frontends/src/jp/cmd_event.py @ 2283:5b04fc0c663d

jp (pubsub/get): renamed --id option to --item for consistency with other commands
author Goffi <goffi@goffi.org>
date Thu, 29 Jun 2017 20:35:07 +0200
parents 0f3bfe89999e
children 4fd010f29f99
line wrap: on
line diff
--- a/frontends/src/jp/cmd_event.py	Wed Jun 28 23:49:55 2017 +0200
+++ b/frontends/src/jp/cmd_event.py	Thu Jun 29 20:35:07 2017 +0200
@@ -44,7 +44,7 @@
         self.need_loop=True
 
     def add_parser_options(self):
-        self.parser.add_argument("-i", "--id", type=base.unicode_decoder, default=u'', help=_(u"ID of the PubSub Item"))
+        self.parser.add_argument("-i", "--item", type=base.unicode_decoder, default=u'', help=_(u"ID of the PubSub Item"))
 
     def eventInviteeGetCb(self, result):
         event_date, event_data = result
@@ -56,7 +56,7 @@
         self.host.bridge.eventGet(
             self.args.service,
             self.args.node,
-            self.args.id,
+            self.args.item,
             self.profile,
             callback=self.eventInviteeGetCb,
             errback=partial(self.errback,