jp (ad-hoc/run): node is now a positional argument
This commit is contained in:
parent
78911f8a3b
commit
dba43447aa
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue