jp (ad-hoc/run): node is now a positional argument

This commit is contained in:
Goffi 2017-10-31 23:30:18 +01:00
commit dba43447aa

View file

@ -72,7 +72,6 @@ class Run(base.CommandBase):
self.need_loop=True
def add_parser_options(self):
self.parser.add_argument('-n', '--node', type=base.unicode_decoder, default=u'', help=_(u"node of the command (default: list commands)"))
self.parser.add_argument('-j', '--jid', type=base.unicode_decoder, default=u'', help=_(u"jid of the service (default: profile's server"))
self.parser.add_argument("-S", "--submit", action='append_const', const=xmlui_manager.SUBMIT, dest='workflow', help=_(u"submit form/page"))
self.parser.add_argument("-f",
@ -83,6 +82,7 @@ class Run(base.CommandBase):
dest='workflow',
metavar=(u"KEY", u"VALUE"),
help=_(u"field value"))
self.parser.add_argument('node', type=base.unicode_decoder, nargs='?', default=u'', help=_(u"node of the command (default: list commands)"))
def adHocRunCb(self, xmlui_raw):
xmlui = xmlui_manager.create(self.host, xmlui_raw)